added logging to raid and template changes

This commit is contained in:
Sarah Faey 2022-11-19 00:47:52 +01:00
parent 803332bc5c
commit aad07809d2
6 changed files with 16 additions and 4 deletions

View file

@ -34,6 +34,7 @@ namespace Lieb.Models.GuildWars2.Raid
public static RaidLog CreateRaidLog(ulong userId, Raid raid)
{
raid.RaidLogs.Clear();
return new RaidLog()
{
Type = LogType.Raid,
@ -59,6 +60,7 @@ namespace Lieb.Models.GuildWars2.Raid
public static RaidLog CreateRaidTemplateLog(ulong userId, RaidTemplate template)
{
template.TemplateLogs.Clear();
return new RaidLog()
{
Type = LogType.RaidTemplate,