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