Skip to content

Commit

Permalink
adding tenantId to generateUrl (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwebs authored Apr 26, 2024
1 parent f4619e9 commit 16d8433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/courier-js/src/helpers/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type CourierOptions = {

export type PreferenceLinkOptions = {
brandId?: string;
tenantId?: string;
};

async function tryCatch(
Expand Down Expand Up @@ -112,7 +113,7 @@ export class Courier {
const id = decode(this.clientKey);

return `https://view.notificationcenter.app/p/${encode(
`${id}#${options?.brandId ?? ""}#${userId}#${false}`
`${id}#${options?.brandId ?? ""}#${userId}${options?.tenantId?`#${options.tenantId}`:""}#${false}`
)}`;
}

Expand Down

0 comments on commit 16d8433

Please sign in to comment.