Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add migrate on SmtpServer startup (#111)
Leendert de Borst014064376c28
diff --git a/src/Services/AliasVault.SmtpService/Program.cs b/src/Services/AliasVault.SmtpService/Program.csindex b12d71ce5..925f465f2 100644--- a/src/Services/AliasVault.SmtpService/Program.cs+++ b/src/Services/AliasVault.SmtpService/Program.cs@@ -120,6 +120,14 @@ builder.Services.AddSingleton();builder.Services.AddHostedService<Worker>();-var host = builder.Build();++using (var scope = host.Services.CreateScope())+{+ var container = scope.ServiceProvider;+ var db = container.GetRequiredService<AliasServerDbContext>();++ await db.Database.MigrateAsync();+}+await host.RunAsync();