youuuu should work dumb
continuous-integration/drone/push Build is passing Details

Test_CI
David D'ALMEIDA 1 year ago
parent 58f6e2ab0e
commit 60eefb61cd

@ -114,8 +114,13 @@ switch (Environment.GetEnvironmentVariable("TYPE"))
break; break;
} }
// app.Services.GetService<HeartTrackContext>()!.Database.EnsureCreated();
builder.Services.AddSingleton<IDataManager>(provider => builder.Services.AddSingleton<IDataManager>(provider =>
new DbDataManager(provider.GetRequiredService<HeartTrackContext>())); {
provider.GetRequiredService<HeartTrackContext>().Database.EnsureCreated();
return new DbDataManager(provider.GetRequiredService<HeartTrackContext>());
});
builder.Services.AddAuthorization(); builder.Services.AddAuthorization();
builder.Services.AddIdentityApiEndpoints<IdentityUser>() builder.Services.AddIdentityApiEndpoints<IdentityUser>()
@ -165,6 +170,5 @@ if (true)
}); });
} }
app.Services.GetService<HeartTrackContext>()!.Database.EnsureCreated();
app.Run(); app.Run();
Loading…
Cancel
Save