From 18f8ab97e8e19c8461870b1f5f68bdba28e64f8a Mon Sep 17 00:00:00 2001 From: Kris Bloe Date: Fri, 12 Apr 2024 14:49:15 +0100 Subject: [PATCH] Upper casing ids when they arrive --- src/api/messages/store-message-controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/messages/store-message-controller.js b/src/api/messages/store-message-controller.js index d9f22783..8065d4ac 100644 --- a/src/api/messages/store-message-controller.js +++ b/src/api/messages/store-message-controller.js @@ -46,6 +46,11 @@ export const storeMessageControllerValidation = [ export const storeMessageController = async (req, res) => { const { id: messageId, attributes } = req.body.data; const { conversationId, messageType, fragmentMessageIds } = attributes; + + messageId = messageId.toUpperCase(); + conversationId = conversationId.toUpperCase(); + fragmentMessageIds = fragmentMessageIds.map(fragmentMessageId => fragmentMessageId.toUpperCase()); + setCurrentSpanAttributes({ conversationId, messageId }); try {