fix(plugin-workflow): fix duplicated triggering schedule event (#3692)

This commit is contained in:
Junyi 2024-03-13 11:42:00 +08:00 committed by GitHub
parent f68b2fb04a
commit 4015cf1c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);