Skip to content

Commit

Permalink
chore: return action for record event to server
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Feb 27, 2024
1 parent c82879e commit a0fb0b4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/v0/destinations/redis/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Check warning on line 43 in src/v0/destinations/redis/transform.js

View check run for this annotation

Codecov / codecov/patch

src/v0/destinations/redis/transform.js#L41-L43

Added lines #L41 - L43 were not covered by tests
message: {
hash,
key,
value,
action,
},
userId,
};
}
return {
message: {
Expand Down

0 comments on commit a0fb0b4

Please sign in to comment.