Reduce CaseTypes to those that can be temporary

This commit is contained in:
jvyden 2022-08-05 17:18:43 -04:00
parent e45a93dc33
commit b3d91fd470
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
5 changed files with 8 additions and 66 deletions

View file

@ -96,8 +96,7 @@ public class AdminUserController : ControllerBase
Logger.Error($"Failed to delete planet resource {hash}\n{e}", LogArea.Admin);
}
}
this.database.Cases.Add(ModerationCase.NewPlanetDeletionCase(user.UserId, targetedUser.UserId));
await this.database.SaveChangesAsync();
return this.Redirect($"/user/{targetedUser.UserId}");