fixed expire settings not returned on api

This commit is contained in:
Toastie 2024-10-23 19:32:12 +13:00
parent 1038576ff4
commit 746ffda946
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 5 additions and 3 deletions
src/EllieBot/Services/GrpcApi

View file

@ -27,6 +27,8 @@ public sealed class WarnSvc : GrpcWarn.GrpcWarnBase, IGrpcSvc, IEService
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(),