fix: fixed expire settings not returned on api

This commit is contained in:
Kwoth
2024-10-21 04:36:54 +00:00
parent 716090a132
commit 49f04a594b
3 changed files with 5 additions and 3 deletions

View File

@@ -27,6 +27,8 @@ public sealed class WarnSvc : GrpcWarn.GrpcWarnBase, IGrpcSvc, INService
var wsr = new WarnSettingsReply();
(wsr.ExpiryDays, wsr.DeleteOnExpire) = await _ups.GetWarnExpire(request.GuildId);
wsr.Punishments.AddRange(list.Select(x => new WarnPunishment()
{
Action = x.Punishment.ToString(),