Skip to content

Commit 28b90c5

Browse files
committed
bug fix for issue #18
1 parent aa5f676 commit 28b90c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/event.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Event {
77
throw new Error("You must initialize Event with a key.")
88

99
this._state = { count: 0, errorCount: 0}
10-
this.monitor = new Monitor(options)
10+
this.monitor = new Monitor(key)
1111
this.intervalSeconds = Math.max(options.intervalSeconds || 60, 1)
1212
this.intervalId = setInterval(this._flush.bind(this), this.intervalSeconds * 1000)
1313
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cronitor",
3-
"version": "2.2.2",
3+
"version": "2.2.3",
44
"description": "A small library for reliably monitoring cron jobs, control-loops, or other important system events with Cronitor.",
55
"main": "lib/cronitor.js",
66
"repository": {

0 commit comments

Comments
 (0)