aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-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;