From 3cbf42a8d4ffef02b92067bf0083abd9a15836c1 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Nov 2020 23:35:05 +0300 Subject: feat: add find method --- src/services/events/event.service.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/services/events/event.service.js b/src/services/events/event.service.js index 112990a..5391443 100644 --- a/src/services/events/event.service.js +++ b/src/services/events/event.service.js @@ -27,9 +27,13 @@ class Events { return this.agenda.start(); }; - async create(data, params) { + create(data, params) { return this.agenda.schedule(data.date, 'attend class', data); }; + + find(params) { + return this.agenda.jobs(); + } } -- cgit v1.2.3