summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-14 23:35:05 +0300
committereug-vs <eug-vs@keemail.me>2020-11-14 23:35:05 +0300
commit3cbf42a8d4ffef02b92067bf0083abd9a15836c1 (patch)
tree4171c2938b0dabac4f72bf4e7b33ae67022b851d
parent806c97c2998a3139d5fffd62d324be716d2e8628 (diff)
downloadbsu-fantom-3cbf42a8d4ffef02b92067bf0083abd9a15836c1.tar.gz
feat: add find method
-rw-r--r--src/services/events/event.service.js6
1 files changed, 5 insertions, 1 deletions
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();
+ }
}