fix: issues found in the invitations live check
- guest list failed when no guest was linked yet (Map.of().get(null)) - counter errors arrive as ProblemDetail: read the reason code from detail; drop the counter error advice the core handler always overrode - emails published with a null sender failed the NOT NULL column Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
aed9473aba
commit
fbbc5d0980
10 files changed
+115
-87
No files matched your search
+2
@@ -36,6 +36,8 @@ public class EmailService {
|
||||
}
|
||||
@Transactional
|
||||
public Email save(Email email) {
|
||||
// A published email may carry "sender": null, which overrides the entity default; keep the column filled.
|
||||
if (email.getSender() == null) email.setSender(com.solvway.services.email.constants.EmailConstant.EMAIL_SENDER);
|
||||
return emailRepository.save(email);
|
||||
}
|
||||
@Transactional
|
||||
|
||||
Reference in new issue
Block a user