Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anant Jain <[email protected]>
  • Loading branch information
shrouti1507 and anantjain45823 authored Feb 15, 2024
1 parent 2fb5cba commit 6d0c971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdk/v2/destinations/bluecore/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const { MAPPING_CONFIG, CONFIG_CATEGORIES } = require('./config');
const verifyPayload = (payload, message) => {
if (
message.type === EventType.IDENTIFY &&
isDefinedNotNullNotEmpty(message?.traits?.action) &&
message?.traits?.action !== 'identify'
isDefinedNotNullNotEmpty(message.traits?.action) &&
message.traits?.action !== 'identify'
) {
throw new InstrumentationError(
"[Bluecore] traits.action must be 'identify' for identify action",
Expand Down

0 comments on commit 6d0c971

Please sign in to comment.