aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-12-04 04:44:07 +0300
committerGitHub <noreply@github.com>2020-12-04 04:44:07 +0300
commit1338c0e7c76ccc3d168bdb7d2f3f7dba3fa0ed79 (patch)
tree2f2c0e227be8fc8023d9439baedef00d762a7f9a
parentda9a2d3177997262985968f1559a56a3680f461d (diff)
downloadmongo-cronjob-1338c0e7c76ccc3d168bdb7d2f3f7dba3fa0ed79.tar.gz
docs: remove schema from README
-rw-r--r--README.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/README.md b/README.md
index 92f42f9..4356a70 100644
--- a/README.md
+++ b/README.md
@@ -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;