Skip to content

Commit

Permalink
Remove deleted modcases
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Mar 26, 2024
1 parent e1e3a4c commit 4433906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/Punishments/Data/ModCaseRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public async Task AddWhoIsInformation(EmbedBuilder embed, IGuildUser user, IInte
Translation translator)
{
var cases = await GetCasesForGuildAndUser(context.Guild.Id, user.Id);
cases = cases.Where(cases => cases.DeletedByUserId > 0).ToList();
var activeCases = cases.FindAll(c => c.PunishmentActive);

if (cases.Count > 0)
Expand Down

0 comments on commit 4433906

Please sign in to comment.