From 8ef929e503b00d93c5fee4ab996aeaa9abf283d3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 4 Dec 2020 01:21:59 +0300 Subject: chore: upgrade mongo-cronjob --- src/services/events/models.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/services/events/models.js') diff --git a/src/services/events/models.js b/src/services/events/models.js index 99dada1..72b10d7 100644 --- a/src/services/events/models.js +++ b/src/services/events/models.js @@ -1,16 +1,7 @@ const mongoose = require('mongoose'); const { Client } = require('mongo-cronjob'); -const { getConnection } = require('../../connectDb.js'); - -const contextSchema = new mongoose.Schema({ - participants: [String], - attendanceId: String, - conferenceId: String -}); - -const connection = mongoose.connection; -const client = new Client(connection, contextSchema); +const client = new Client(mongoose.connection); module.exports = client; -- cgit v1.2.3