fix: app not starting if UI config is disabled and Postgres is used

This commit is contained in:
Elias Schneider
2025-06-22 21:21:14 +02:00
parent 8c559ea067
commit 7d36bda769

View File

@@ -369,7 +369,7 @@ func (s *AppConfigService) LoadDbConfig(ctx context.Context) (err error) {
func (s *AppConfigService) loadDbConfigInternal(ctx context.Context, tx *gorm.DB) (*model.AppConfig, error) {
// If the UI config is disabled, only load from the env
if common.EnvConfig.UiConfigDisabled {
dest, err := s.loadDbConfigFromEnv(ctx, s.db)
dest, err := s.loadDbConfigFromEnv(ctx, tx)
return dest, err
}