Merge pull request #289 from Kitzanos/pec-skip-success-response

Update PEC Email to Exclude Success Responses
This commit is contained in:
Rinaldo
2025-05-19 10:30:52 +02:00
committed by GitHub
20 changed files with 98 additions and 61 deletions

View File

@@ -18,6 +18,9 @@ public class EmailSendResponseConverter implements AttributeConverter<List<Email
@Override
public String convertToDatabaseColumn(List<EmailSendResponse> attribute) {
try {
if (attribute == null) {
attribute = List.of();
}
return objectMapper.writeValueAsString(attribute);
} catch (JsonProcessingException e) {
throw new IllegalArgumentException("Error converting list to JSON", e);