fix: notifyEvent二次应用模板冲掉已替换变量 → 传递templateVars
This commit is contained in:
@@ -141,7 +141,7 @@ export function notifyConfigEvent(
|
|||||||
// Find matching push user by cloud_configs.promotion_account
|
// Find matching push user by cloud_configs.promotion_account
|
||||||
const pushUser = findPushUserForConfig(configId);
|
const pushUser = findPushUserForConfig(configId);
|
||||||
if (!pushUser) {
|
if (!pushUser) {
|
||||||
notifyEvent(eventName, title, content, level);
|
notifyEvent(eventName, title, content, level, templateVars);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ export function notifyConfigEvent(
|
|||||||
if (userChannels.length > 0) {
|
if (userChannels.length > 0) {
|
||||||
sendToChannels(userChannels, title, content, level).catch(() => {});
|
sendToChannels(userChannels, title, content, level).catch(() => {});
|
||||||
} else {
|
} else {
|
||||||
notifyEvent(eventName, title, content, level);
|
notifyEvent(eventName, title, content, level, templateVars);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user