diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -6,11 +6,8 @@ Cron-based job scheduler which persists events to MongoDB const mongoose = require('mongoose'); const { Client, Scheduler } = require('mongo-cronjob'); -// Define schema for event context -const contextSchema = new Schema({ message: String }); - // Initialize client with existing connection -const client = new Client(mongoose.connection, contextSchema); +const client = new Client(mongoose.connection); const EventModel = client.Event; const LogModel = client.Log; |