From 742733c6d8489c1c841d77cdb208bf00f8327529 Mon Sep 17 00:00:00 2001 From: Ramin Date: Mon, 13 May 2024 20:18:05 +0330 Subject: [PATCH] fix merge by field --- src/services/notificationService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index 98f41c8..d65a05c 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -21,7 +21,6 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES } if (process.env.ENVIRONMENT === 'production') { fields['str:cm:user-id'] = payload.userId?.toString() - fields['str:cm:userid'] = payload.userId?.toString() } let attributes; switch (orttoEventName) { @@ -168,7 +167,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES } const merge_by = []; if (process.env.ENVIRONMENT === 'production') { - merge_by.push("str:cm:userid") + merge_by.push("str:cm:user-id") } else { merge_by.push("str::email") }