bug(tipping): missing db migration

This commit is contained in:
2025-07-31 13:48:14 -04:00
parent de1ba7dd1a
commit c1d44fde49

View File

@@ -23,7 +23,7 @@ public static class DependencyInjection
{
IServiceScopeFactory scopeFactory = app.ApplicationServices.GetRequiredService<IServiceScopeFactory>();
using IServiceScope scope = scopeFactory.CreateScope();
await using MessagingDbContext context = scope.ServiceProvider.GetRequiredService<MessagingDbContext>();
await using TippingDbContext context = scope.ServiceProvider.GetRequiredService<TippingDbContext>();
await context.Database.MigrateAsync(cancellationToken);
return app;