fix(plugin-workflow): fix duplicated triggering schedule event (#3692)
This commit is contained in:
parent
f68b2fb04a
commit
4015cf1c0d
@ -358,7 +358,7 @@ export default class ScheduleTrigger {
|
||||
}
|
||||
|
||||
const { collection } = workflow.config;
|
||||
const event = `${collection}.afterSave`;
|
||||
const event = `${collection}.afterSaveWithAssociations`;
|
||||
const name = getHookId(workflow, event);
|
||||
if (this.events.has(name)) {
|
||||
const listener = this.events.get(name);
|
||||
|
Loading…
Reference in New Issue
Block a user