Correct subscription read before send
This commit is contained in:
parent
8ea527fa76
commit
2847edd04a
|
@ -58,7 +58,7 @@ public abstract class BaseSubscriptionDeliverySubscriber extends BaseSubscriptio
|
|||
// useful for resources created in a transaction, since they
|
||||
// can have placeholder IDs in them.
|
||||
IIdType payloadId = msg.getPayloadId(getContext());
|
||||
Class type = Class.forName(payloadId.getResourceType());
|
||||
Class type = getContext().getResourceDefinition(payloadId.getResourceType()).getImplementingClass();
|
||||
IFhirResourceDao dao = getSubscriptionDao().getDao(type);
|
||||
IBaseResource loadedPayload = dao.read(payloadId);
|
||||
msg.setPayload(getContext(), loadedPayload);
|
||||
|
|
Loading…
Reference in New Issue