diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-12-04 04:44:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 04:44:07 +0300 |
commit | 1338c0e7c76ccc3d168bdb7d2f3f7dba3fa0ed79 (patch) | |
tree | 2f2c0e227be8fc8023d9439baedef00d762a7f9a | |
parent | da9a2d3177997262985968f1559a56a3680f461d (diff) | |
download | mongo-cronjob-1338c0e7c76ccc3d168bdb7d2f3f7dba3fa0ed79.tar.gz |
docs: remove schema from README
-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; |