Skip to content

Commit

Permalink
Merge pull request #118 from nhsconnect/PRMT-4774
Browse files Browse the repository at this point in the history
PRMT-4774
  • Loading branch information
martin-nhs authored Apr 16, 2024
2 parents 4bbc3dd + 535c094 commit 85297d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/message-id.integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ describe('Replacement of message IDs', () => {
gp2gpMessengerPostRequestBodies.forEach(postRequestBody => {
expect(postRequestBody.conversationId).toEqual(conversationId);
expect(postRequestBody.odsCode).toEqual(odsCode);
expect(postRequestBody.outboundMessageId).toEqual(postRequestBody.outboundMessageId.toUpperCase());
expect(postRequestBody.messageId).toEqual(postRequestBody.messageId.toUpperCase());
expect(fragmentOldMessageIds).not.toContain(postRequestBody.messageId);
});

Expand All @@ -225,7 +225,7 @@ describe('Replacement of message IDs', () => {
.sort();

const newMessageIdsInPostRequests = gp2gpMessengerPostRequestBodies
.map(body => body.outboundMessageId)
.map(body => body.messageId)
.sort();

expect(newMessageIdsInPostRequests).toEqual(newFragmentMessageIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('logOutboundMessage', () => {
expect(actualOutboundRequestBody).toMatchObject({
conversationId: outboundConversationId,
odsCode,
outboundMessageId
messageId: outboundMessageId
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/gp2gp/send-fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const sendFragment = async (
const requestBody = {
conversationId: outboundConversationId,
odsCode,
fragmentMessage,
outboundMessageId
messageId: outboundMessageId,
fragmentMessage
};

setCurrentSpanAttributes({ conversationId: outboundConversationId, outboundMessageId });
Expand Down

0 comments on commit 85297d8

Please sign in to comment.