撇号CMS +撇号-外部通知:如何实现对新事件的支持

问题描述 投票:0回答:1

我想在每个“提交”事件中从CMS发送Slack通知。我成功地在Slack中触发了现有事件,但是当我将以下代码包含在节点模块包中以进行撇号外部通知时,如下所示,我没有收到任何通知。

     self.notifyOn('apostrophe-workflow:afterSubmit', (req, submit) =>
    ['{user} submitted the {type} {title} which has these tags: {string}.', submit.from, submit.from, submit.from.tags]
  );
apostrophe apostrophe-cms
1个回答
0
投票

afterSubmit不是此撇号工作流当前发出的服务器事件。该操作只有一个浏览器事件workflowSubmitted

Update 2020-03-05:此事件从[email protected]开始添加。

© www.soinside.com 2019 - 2024. All rights reserved.