From fdcbc07d2d74f83f7641f9b4eb4b57d6792d5cc0 Mon Sep 17 00:00:00 2001 From: Ramin Date: Tue, 30 Apr 2024 01:58:49 +0330 Subject: [PATCH 1/3] fix criticaldate Ortto --- src/services/notificationService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index 1c2cded..cda6f55 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -37,7 +37,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:tokensymbol": payload.tokenSymbol, "str:cm:email": payload.email, "str:cm:userId": payload.userId?.toString(), - "str:cm:criticalDate": 'week', + "str:cm:criticaldate": 'week', "bol:cm:isended": payload.isEnded, } break; @@ -46,7 +46,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:tokensymbol": payload.tokenSymbol, "str:cm:email": payload.email, "str:cm:userId": payload.userId?.toString(), - "str:cm:criticalDate": 'month', + "str:cm:criticaldate": 'month', "bol:cm:isended": payload.isEnded, } break; From 956e072981ab4dce8b1294330aac96ea37384233 Mon Sep 17 00:00:00 2001 From: Ramin Date: Tue, 30 Apr 2024 02:11:00 +0330 Subject: [PATCH 2/3] change userId to lowercase --- src/services/notificationService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index cda6f55..3eb8951 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -28,7 +28,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES attributes = { "str:cm:tokensymbol": payload.tokenSymbol, "str:cm:email": payload.email, - "str:cm:userId": payload.userId?.toString(), + "str:cm:userid": payload.userId?.toString(), "bol:cm:isended": payload.isEnded, } break; @@ -36,7 +36,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES attributes = { "str:cm:tokensymbol": payload.tokenSymbol, "str:cm:email": payload.email, - "str:cm:userId": payload.userId?.toString(), + "str:cm:userid": payload.userId?.toString(), "str:cm:criticaldate": 'week', "bol:cm:isended": payload.isEnded, } @@ -45,7 +45,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES attributes = { "str:cm:tokensymbol": payload.tokenSymbol, "str:cm:email": payload.email, - "str:cm:userId": payload.userId?.toString(), + "str:cm:userid": payload.userId?.toString(), "str:cm:criticaldate": 'month', "bol:cm:isended": payload.isEnded, } From eab2355d9176fb210fe6ce3c6c38a581cba2e7d0 Mon Sep 17 00:00:00 2001 From: Ramin Date: Tue, 30 Apr 2024 02:22:59 +0330 Subject: [PATCH 3/3] change userId to lowercase --- src/services/notificationService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index 3eb8951..c712ec2 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -129,6 +129,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:email": payload.email, "str:cm:projectlink": payload.projectLink, "str:cm:verified-status": 'revoked', + "str:cm:userid": payload.userId?.toString(), } break case NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_WARNING: @@ -136,7 +137,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:projecttitle": payload.title, "str:cm:email": payload.email, "str:cm:projectupdatelink": payload.projectLink + '?tab=updates', - "str:cm:user-id": payload.userId?.toString(), + "str:cm:userid": payload.userId?.toString(), } break case NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_LAST_WARNING: @@ -144,7 +145,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:projecttitle": payload.title, "str:cm:email": payload.email, "str:cm:projectupdatelink": payload.projectLink + '?tab=updates', - "str:cm:user-id": payload.userId?.toString(), + "str:cm:userid": payload.userId?.toString(), } break default: