NonUniqueResultException: query did not return a unique result: 2
Despite the getOrCreate, it is apparently possible to have more than 1 userSettings per person. perhaps add a unique/key on the person_id?
Sentry Issue: SUBMIT-5A
NonUniqueResultException: query did not return a unique result: 2
at nl.tudelft.submit.service.UserSettingsService.getOrCreateUserSettings(UserSettingsService.java:61)
at nl.tudelft.submit.service.UserSettingsService.getOrCreateUserSettings(UserSettingsService.java:50)
at nl.tudelft.submit.service.UserSettingsService$$FastClassBySpringCGLIB$$910bebbe.invoke(<generated>)
at nl.tudelft.submit.service.UserSettingsService$$EnhancerBySpringCGLIB$$99c44bb0.getOrCreateUserSettings(<generated>)
...
(208 additional frame(s) were not displayed)
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "@userSettingsService.getOrCreateUserSettings()" (template: "settings" - line 37, col 21)] with root cause