Skip to content

Commit

Permalink
Merge pull request #89 from Giveth/change-criticaldate-to-lowercase
Browse files Browse the repository at this point in the history
change Ortto fields to lowercase
  • Loading branch information
divine-comedian authored Apr 29, 2024
2 parents 2eaff62 + eab2355 commit 8145afc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/services/notificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ 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;
case NOTIFICATIONS_EVENT_NAMES.SUPER_TOKENS_BALANCE_WEEK:
attributes = {
"str:cm:tokensymbol": payload.tokenSymbol,
"str:cm:email": payload.email,
"str:cm:userId": payload.userId?.toString(),
"str:cm:criticalDate": 'week',
"str:cm:userid": payload.userId?.toString(),
"str:cm:criticaldate": 'week',
"bol:cm:isended": payload.isEnded,
}
break;
case NOTIFICATIONS_EVENT_NAMES.SUPER_TOKENS_BALANCE_MONTH:
attributes = {
"str:cm:tokensymbol": payload.tokenSymbol,
"str:cm:email": payload.email,
"str:cm:userId": payload.userId?.toString(),
"str:cm:criticalDate": 'month',
"str:cm:userid": payload.userId?.toString(),
"str:cm:criticaldate": 'month',
"bol:cm:isended": payload.isEnded,
}
break;
Expand Down Expand Up @@ -129,22 +129,23 @@ 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:
attributes = {
"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:
attributes = {
"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:
Expand Down

0 comments on commit 8145afc

Please sign in to comment.