diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-12-04 01:33:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 01:33:37 +0300 |
commit | fac35a9a0ad1628cf31380bf29c251f6c51f13f1 (patch) | |
tree | 0aa142dce4a5d8dc4e90b090007cfbba3b4fc0fb /src/services/events/models.js | |
parent | 778f614a8eb753529c02d71e49486846391f0a3f (diff) | |
parent | 8ef929e503b00d93c5fee4ab996aeaa9abf283d3 (diff) | |
download | bsu-fantom-master.tar.gz |
Refactor/mongo cronjob
Diffstat (limited to 'src/services/events/models.js')
-rw-r--r-- | src/services/events/models.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/services/events/models.js b/src/services/events/models.js new file mode 100644 index 0000000..72b10d7 --- /dev/null +++ b/src/services/events/models.js @@ -0,0 +1,7 @@ +const mongoose = require('mongoose'); +const { Client } = require('mongo-cronjob'); + +const client = new Client(mongoose.connection); + +module.exports = client; + |