blob: 99dada1c0cfb5e952c7cfdaed2de1ab6fdb946bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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);
module.exports = client;
|