fixes a regression caused my change in hapi-fhir

This commit is contained in:
nathaniel.doef 2023-02-09 14:09:25 -05:00
parent 1da5e02b92
commit 4b58013149
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ public class SubscriptionDeliveringMessageSubscriber extends BaseSubscriptionDel
if (payloadResource != null) { if (payloadResource != null) {
ResourceModifiedJsonMessage newWrappedMessageToSend = convertDeliveryMessageToResourceModifiedMessage(theSourceMessage, payloadResource); ResourceModifiedJsonMessage newWrappedMessageToSend = convertDeliveryMessageToResourceModifiedMessage(theSourceMessage, payloadResource);
// preserve the message key that was set by the interceptor
newWrappedMessageToSend.getPayload().setMessageKey(theWrappedMessageToSend.getMessageKeyOrNull());
theWrappedMessageToSend.setPayload(newWrappedMessageToSend.getPayload()); theWrappedMessageToSend.setPayload(newWrappedMessageToSend.getPayload());
payloadId = payloadResource.getIdElement().toUnqualifiedVersionless().getValue(); payloadId = payloadResource.getIdElement().toUnqualifiedVersionless().getValue();
} }