fixed crash when deleting Raids
removed Raid from Reminders and DiscordMessages
This commit is contained in:
parent
5d429ff90f
commit
893ec1f16d
11 changed files with 825 additions and 47 deletions
|
@ -72,16 +72,15 @@ namespace Lieb.Models.GuildWars2.Raid
|
|||
DiscordChannelId = reminder.DiscordChannelId,
|
||||
ReminderTimeUTC = reminder.ReminderTimeUTC,
|
||||
Message = reminder.Message,
|
||||
Sent = reminder.Sent,
|
||||
Sent = false,
|
||||
Type = reminder.Type,
|
||||
RaidId = reminder.RaidId
|
||||
TimeType = reminder.TimeType
|
||||
});
|
||||
}
|
||||
foreach (DiscordRaidMessage message in template.DiscordRaidMessages)
|
||||
{
|
||||
this.DiscordRaidMessages.Add(new DiscordRaidMessage()
|
||||
{
|
||||
RaidId = message.RaidId,
|
||||
DiscordChannelId = message.DiscordChannelId,
|
||||
DiscordGuildId = message.DiscordGuildId
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue