Skip to content

Commit

Permalink
Fix reloading hooks with schedule events (#10846)
Browse files Browse the repository at this point in the history
Looks like `ScheduledTask.destroy()` was never part of `node-cron@3.0.0`.
  • Loading branch information
nickrum committed Jan 4, 2022
1 parent 6d9413e commit e7deda7
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion api/src/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class ExtensionManager {
emitter.offInit(hook.event, hook.handler);
break;
case 'schedule':
hook.task.destroy();
hook.task.stop();
break;
}

Expand Down
126 changes: 63 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e7deda7

Please sign in to comment.