Update new recommendation notification message
This commit is contained in:
@ -221,7 +221,14 @@ export const createLabelAndRuleForGroup = async (
|
||||
},
|
||||
{
|
||||
type: RuleActionType.SendNotification,
|
||||
params: [groupName],
|
||||
params: [
|
||||
`
|
||||
{
|
||||
"title": "New page recommended in ${groupName}",
|
||||
"body": "A new page was added to the group ${groupName}"
|
||||
}
|
||||
`,
|
||||
],
|
||||
},
|
||||
],
|
||||
filter: `recommendedBy:"${groupName}"`,
|
||||
|
||||
@ -134,8 +134,7 @@ export const triggerActions = async (
|
||||
const param = JSON.parse(params[0]) as NotificationData
|
||||
data.body = param.body
|
||||
data.title = param.title
|
||||
data.image = param.image
|
||||
data.data = param.data
|
||||
data.image = param.image || data.image
|
||||
}
|
||||
|
||||
return actionPromises.push(
|
||||
|
||||
Reference in New Issue
Block a user