PEC success emails not saved or included in response

This commit is contained in:
Piyush
2025-05-19 13:36:11 +05:30
parent d1f39112f0
commit 64f5bde437
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);