signing up through the discord bot works now
This commit is contained in:
parent
e445b2a181
commit
69337e69ae
11 changed files with 327 additions and 42 deletions
|
@ -43,7 +43,7 @@ namespace Lieb.Data
|
|||
//new LiebUser{Id=0, Name="Sarah", Birthday=DateTime.Parse("1992-01-15"), GuildWars2Accounts = new List<GuildWars2Account>(){ linaith, sarah} },
|
||||
new LiebUser{Id=194863625477816321, Name="Sarah", Birthday=DateTime.Parse("1992-01-15"), GuildWars2Accounts = new List<GuildWars2Account>(){ linaith, sarah} },
|
||||
#if DEBUG
|
||||
new LiebUser{Id=1, Name="Lisa", GuildWars2Accounts = new List<GuildWars2Account>(){ hierpiepts}},
|
||||
new LiebUser{Id=194455125769715713, Name="Lisa", GuildWars2Accounts = new List<GuildWars2Account>(){ hierpiepts}},
|
||||
new LiebUser{Id=2, Name="Simon", GuildWars2Accounts = new List<GuildWars2Account>(){ bloodseeker}}
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -171,7 +171,10 @@ namespace Lieb.Data
|
|||
}
|
||||
|
||||
using var context = _contextFactory.CreateDbContext();
|
||||
context.Update(raid.DiscordRaidMessages);
|
||||
foreach(DiscordRaidMessage message in raid.DiscordRaidMessages)
|
||||
{
|
||||
context.Update(message);
|
||||
}
|
||||
await context.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
@ -192,6 +195,7 @@ namespace Lieb.Data
|
|||
foreach(RaidRole role in raid.Roles)
|
||||
{
|
||||
ApiRaid.Role apiRole = new ApiRaid.Role(){
|
||||
RoleId = role.RaidRoleId,
|
||||
Description = role.Description,
|
||||
Name = role.Name,
|
||||
Spots = role.Spots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue