summaryrefslogtreecommitdiff
path: root/src/services/events/event.model.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/events/event.model.js')
-rw-r--r--src/services/events/event.model.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/services/events/event.model.js b/src/services/events/event.model.js
index 9ecacb7..56ba3c9 100644
--- a/src/services/events/event.model.js
+++ b/src/services/events/event.model.js
@@ -36,16 +36,6 @@ schema.methods.fail = function(error) {
return this.save();
};
-schema.methods.run = async function(handler) {
- try {
- this.start();
- await handler(this);
- return this.complete();
- } catch (error) {
- this.fail(error);
- }
-};
-
schema.methods.computeNextRunAt = function() {
const job = new CronJob(this.schedule);
const nextRunAt = job.nextDates();