Include bans in adminremarks command (#26240)

Fixes #20645
This commit is contained in:
Pieter-Jan Briers
2024-03-18 22:31:34 +01:00
committed by GitHub
parent 7dc7750dd0
commit f55c98ce6d

View File

@@ -1368,6 +1368,8 @@ INSERT INTO player_round (players_id, rounds_id) VALUES ({players[player]}, {id}
.Include(note => note.Player)
.ToListAsync()).Select(MakeAdminNoteRecord));
notesCol.AddRange(await GetMessagesImpl(db, player));
notesCol.AddRange(await GetServerBansAsNotesForUser(db, player));
notesCol.AddRange(await GetGroupedServerRoleBansAsNotesForUser(db, player));
return notesCol;
}