chore: revert 61714e3d9e
All checks were successful
continuous-integration/drone/pr Build is passing

* didn't work out so well, builds fine but refuses to run, stashing
  the idea for another time
This commit is contained in:
surtur 2020-12-26 18:42:34 +01:00
parent 61714e3d9e
commit 83379ec335
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -8,7 +8,7 @@ namespace pwt0x01ng.Models.Database
public static class DBInit
{
public async static void Init(DBContext dbContext)
public static void Init(DBContext dbContext)
{
if (dbContext.Database.EnsureCreated())
{
@ -17,7 +17,7 @@ namespace pwt0x01ng.Models.Database
{
dbContext.Carousel.Add(c);
}
await dbContext.SaveChangesAsync();
dbContext.SaveChanges();
}
}
}