🗑️ Remove the client id migration code
This commit is contained in:
@@ -46,12 +46,12 @@ using (var scope = app.Services.CreateScope())
|
|||||||
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
|
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
|
||||||
await db.Database.MigrateAsync();
|
await db.Database.MigrateAsync();
|
||||||
|
|
||||||
_ = Task.Run(async () =>
|
// _ = Task.Run(async () =>
|
||||||
{
|
// {
|
||||||
var migrationScope = app.Services.CreateScope();
|
// var migrationScope = app.Services.CreateScope();
|
||||||
var migrationAuthService = migrationScope.ServiceProvider.GetRequiredService<AuthService>();
|
// var migrationAuthService = migrationScope.ServiceProvider.GetRequiredService<AuthService>();
|
||||||
await migrationAuthService.MigrateDeviceIdToClient();
|
// await migrationAuthService.MigrateDeviceIdToClient();
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure application middleware pipeline
|
// Configure application middleware pipeline
|
||||||
@@ -64,4 +64,4 @@ app.MapPages(Path.Combine(builder.Environment.WebRootPath, "dist", "index.html")
|
|||||||
// Configure gRPC
|
// Configure gRPC
|
||||||
app.ConfigureGrpcServices();
|
app.ConfigureGrpcServices();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
Reference in New Issue
Block a user