await step.inApp(
'send-mention-notification',
async () => {
const data = await fetchRelatedData();
return {
body: jsonDocument,
primaryAction: {
label: 'View Comment',
url: https://google.com //This won't pass to the "view comment" button in the notificationCenter or to the onNotificationClick method
},
someOtherParam: 'someOtherValue', // this will also not go through
subject: controls.subject ?? `${mentionedByName} mentioned you in a comment`,
};
},
{
skip: async () => shouldSkipMentionWorkflow(payload),
},
);
await step.inApp(
'send-mention-notification',
async () => {
const data = await fetchRelatedData();
return {
body: jsonDocument,
primaryAction: {
label: 'View Comment',
url: https://google.com //This won't pass to the "view comment" button in the notificationCenter or to the onNotificationClick method
},
someOtherParam: 'someOtherValue', // this will also not go through
subject: controls.subject ?? `${mentionedByName} mentioned you in a comment`,
};
},
{
skip: async () => shouldSkipMentionWorkflow(payload),
},
);