Skip to content
Snippets Groups Projects
Commit 41b96cea authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#663 - fixed update of missing attributes for settings

parent 581559e1
No related branches found
No related tags found
No related merge requests found
...@@ -33,13 +33,11 @@ public class SettingsService ...@@ -33,13 +33,11 @@ public class SettingsService
} }
@PostConstruct @PostConstruct
@Transactional
public void postInit() public void postInit()
{ {
this.createDefaultSettingsIfNotExists(); this.createDefaultSettingsIfNotExists();
} }
@Transactional
public void createDefaultSettingsIfNotExists() public void createDefaultSettingsIfNotExists()
{ {
if(settingsRepository.findById(1).isEmpty()) if(settingsRepository.findById(1).isEmpty())
...@@ -116,6 +114,8 @@ public class SettingsService ...@@ -116,6 +114,8 @@ public class SettingsService
{ {
settings.setMigrationDeclined(defaultSettings.getMigrationDeclined()); settings.setMigrationDeclined(defaultSettings.getMigrationDeclined());
} }
settingsRepository.save(settings);
} }
public Settings getSettings() public Settings getSettings()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment