Skip to content

Commit

Permalink
comment out token check
Browse files Browse the repository at this point in the history
  • Loading branch information
balintgrober committed Oct 4, 2023
1 parent 71301eb commit 5500e33
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions grade-management/Ahk.GradeManagement/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ public static async Task Main(string[] args)
})
.Build();

using (var context = new AhkDbContextFactory().CreateDbContext(args))
{
context.Database.EnsureCreated();
var token = context.WebhookTokens.FirstOrDefault();
if (token == null)
{
var id = Guid.NewGuid().ToString("N");
var secret = Guid.NewGuid().ToString("N");
var webHookToken = new WebhookToken() { Id = id, Secret = secret };
context.WebhookTokens.Add(webHookToken);
context.SaveChanges();
}
//using (var context = new AhkDbContextFactory().CreateDbContext(args))
//{
// context.Database.EnsureCreated();
// var token = context.WebhookTokens.FirstOrDefault();
// if (token == null)
// {
// var id = Guid.NewGuid().ToString("N");
// var secret = Guid.NewGuid().ToString("N");
// var webHookToken = new WebhookToken() { Id = id, Secret = secret };
// context.WebhookTokens.Add(webHookToken);
// context.SaveChanges();
// }

SampleDataSeeder seeder = new SampleDataSeeder(context);
//seeder.ClearData();
//seeder.SeedData();
}
// SampleDataSeeder seeder = new SampleDataSeeder(context);
// //seeder.ClearData();
// //seeder.SeedData();
//}

await host.RunAsync();
}
Expand Down

0 comments on commit 5500e33

Please sign in to comment.