Skip to content

Commit

Permalink
fix: added params for value
Browse files Browse the repository at this point in the history
  • Loading branch information
akp111 committed Jun 5, 2024
1 parent f9a4355 commit cea6fee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export type IPayload = {
cta?: string;
embed?: string;
category?: number;
value?: string[];
meta?: {
domain?: string;
type: `${ADDITIONAL_META_TYPE}+${number}`;
Expand Down
12 changes: 12 additions & 0 deletions packages/restapi/src/lib/pushNotification/pushNotificationBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,18 @@ export class PushNotificationBaseClass {
SETTING_DELIMITER +
settings[options.payload.category - 1].default.lower;
}
if (
(settings[options.payload.category - 1].type == SELECT_TYPE ||
settings[options.payload.category - 1].type == TEXT_TYPE) &&
options.payload.value
) {
index =
options.payload.category +
SETTING_DELIMITER +
SELECT_TYPE +
SETTING_DELIMITER +
options.payload.value.join(SETTING_DELIMITER);
}
}
const notificationPayload: ISendNotificationInputOptions = {
signer: signer,
Expand Down

0 comments on commit cea6fee

Please sign in to comment.