fix: run module startup after migrations (#54)

This commit is contained in:
ila
2026-08-13 22:05:32 +08:00
parent 49af68dc6e
commit c5a1e6bebe
+4
View File
@@ -47,6 +47,9 @@ func Run() error {
if err := app.ApplyMigrations(context.Background()); err != nil {
return err
}
if err := app.Start(context.Background()); err != nil {
return fmt.Errorf("start Sense modules: %w", err)
}
server := &http.Server{
Addr: cfg.HTTPAddress,
@@ -77,3 +80,4 @@ func Run() error {
return serveErr
}
}