[CST-10641] fix wrong status for LDN Notification

This commit is contained in:
Stefano Maffei
2023-12-28 17:57:36 +01:00
parent dc437a80b7
commit 336791e001

View File

@@ -238,9 +238,11 @@ public class LDNMessageServiceImpl implements LDNMessageService {
} catch (JsonSyntaxException jse) {
result = -1;
log.error("Unable to read JSON notification from LdnMessage " + msg, jse);
msg.setQueueStatus(LDNMessageEntity.QUEUE_STATUS_FAILED);
} catch (Exception e) {
result = -1;
log.error(e);
msg.setQueueStatus(LDNMessageEntity.QUEUE_STATUS_FAILED);
} finally {
msg.setQueueAttempts(msg.getQueueAttempts() + 1);
update(context, msg);