{master} log team closure

deepcrayonfish^2
Thibault Duplessis 2021-11-07 09:21:56 +01:00
parent 2a44758c45
commit 51605e46f1
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ final class TeamApi(
lila.security.Granter(_.ManageTeam)(by) || team.createdBy == by.id ||
(team.leaders(by.id) && !team.leaders(team.createdBy))
) {
logger.info(s"toggleEnabled ${team.id}: ${!team.enabled} by @${by.id}")
if (team.enabled)
teamRepo.disable(team).void >>
memberRepo.userIdsByTeam(team.id).map { _ foreach cached.invalidateTeamIds } >>