From a0fb0b4c3de2f977f9825eec837aadf49aa0b515 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:07:11 +0530 Subject: [PATCH] chore: return action for record event to server --- src/v0/destinations/redis/transform.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/v0/destinations/redis/transform.js b/src/v0/destinations/redis/transform.js index 08009074d7..7042b72e99 100644 --- a/src/v0/destinations/redis/transform.js +++ b/src/v0/destinations/redis/transform.js @@ -38,7 +38,17 @@ const transformSubEventTypeProfiles = (message, workspaceId, destinationId) => { const key = `${message.context.sources.profiles_model}`; let value = JSON.stringify(message.traits); if (message.type === EventType.RECORD) { - value = JSON.stringify(message.fields); + const { action, userId, fields } = message; + value = JSON.stringify(fields); + return { + message: { + hash, + key, + value, + action, + }, + userId, + }; } return { message: {