🐛 Fix action logs

This commit is contained in:
2025-08-14 02:29:16 +08:00
parent 1778ab112d
commit 7ec3f25d43
3 changed files with 61 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using DysonNetwork.Pass;
using DysonNetwork.Pass.Auth;
using DysonNetwork.Pass.Pages.Data;
using DysonNetwork.Pass.Startup;
using DysonNetwork.Shared.Http;
@@ -44,6 +45,13 @@ using (var scope = app.Services.CreateScope())
{
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
await db.Database.MigrateAsync();
_ = Task.Run(async () =>
{
var migrationScope = app.Services.CreateScope();
var migrationAuthService = migrationScope.ServiceProvider.GetRequiredService<AuthService>();
await migrationAuthService.MigrateDeviceIdToClient();
});
}
// Configure application middleware pipeline