fix: preserve OA configuration during database startup
This commit is contained in:
@@ -299,7 +299,12 @@ func NewData(runtime *config.Store, appLogger *slog.Logger, storageManager *stor
|
||||
}
|
||||
admin.Storage = storageConfig
|
||||
admin.Email = emailConfig
|
||||
runtime.Replace(&config.Config{Server: runtime.Server(), Data: c, Admin: admin})
|
||||
next := runtime.Snapshot()
|
||||
if next == nil {
|
||||
next = &config.Config{}
|
||||
}
|
||||
next.Data, next.Admin = c, admin
|
||||
runtime.Replace(next)
|
||||
if err = d.loadIntegrationRuntime(db); err != nil {
|
||||
return nil, nil, fmt.Errorf("load integration runtime: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user