mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 18:12:31 +00:00
fix: app not starting if UI config is disabled and Postgres is used
This commit is contained in:
@@ -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) {
|
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 the UI config is disabled, only load from the env
|
||||||
if common.EnvConfig.UiConfigDisabled {
|
if common.EnvConfig.UiConfigDisabled {
|
||||||
dest, err := s.loadDbConfigFromEnv(ctx, s.db)
|
dest, err := s.loadDbConfigFromEnv(ctx, tx)
|
||||||
return dest, err
|
return dest, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user