mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
fixed it
This commit is contained in:
@@ -75,8 +75,6 @@ app.MapDelete("/inventory/{id}", async (int id, BarkContext db) =>
|
||||
return Results.Ok(new { Message = "Inventory item deleted successfully" });
|
||||
});
|
||||
|
||||
app.Services.GetRequiredService<BarkContext>().Database.Migrate();
|
||||
|
||||
using (var serviceScope = app.Services.CreateScope())
|
||||
{
|
||||
var dbContext = serviceScope.ServiceProvider.GetRequiredService<BarkContext>();
|
||||
|
||||
Reference in New Issue
Block a user