From 8aa456121fb358e487f6e41cf42e0f19f263e48d Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Tue, 10 Dec 2024 09:25:07 +0300 Subject: [PATCH] since param should be updated every when theres a response --- .../impl/NotificationsPullPointClientImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/org/openmrs/module/xdssender/api/notificationspullpoint/impl/NotificationsPullPointClientImpl.java b/api/src/main/java/org/openmrs/module/xdssender/api/notificationspullpoint/impl/NotificationsPullPointClientImpl.java index 364e0e4..8cc9e61 100644 --- a/api/src/main/java/org/openmrs/module/xdssender/api/notificationspullpoint/impl/NotificationsPullPointClientImpl.java +++ b/api/src/main/java/org/openmrs/module/xdssender/api/notificationspullpoint/impl/NotificationsPullPointClientImpl.java @@ -108,6 +108,7 @@ public boolean getNewMessages(Location currentLocation) { response = getResponseHttpClient(request); HL7Service hl7Service = Context.getHL7Service(); if (response != null) { + success = true; for (NotificationMessageHolderType notification : response.getNotificationMessage()) { Element el = (Element) notification.getMessage().getAny(); String decodedMessage = new String(Base64.decodeBase64(el.getTextContent().getBytes())); @@ -123,7 +124,6 @@ public boolean getNewMessages(Location currentLocation) { hl7InQueue.setHL7Source(hl7Service.getHL7Source(1)); hl7InQueue.setHL7SourceKey(currentLocation.getName()); hl7Service.saveHL7InQueue(hl7InQueue); - success = true; } } }