fixed errors while logging raids

SQlite is now also used in production
This commit is contained in:
Sarah Faey 2022-11-24 17:56:06 +01:00
parent 7d6bc48dba
commit fc5e75cc9d
5 changed files with 12 additions and 20 deletions

View file

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