Skip to content

Commit 5242736

Browse files
committed
fix: skip index creation
1 parent 24f6a84 commit 5242736

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/agenda/db-init.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = function(collection, cb) {
1313
const self = this;
1414
debug('init database collection using name [%s]', collection);
1515
this._collection = this._mdb.collection(collection || 'agendaJobs');
16+
17+
self.emit('ready');
18+
/**
1619
debug('attempting index creation');
1720
this._collection.createIndex(
1821
this._indices,
@@ -30,5 +33,5 @@ module.exports = function(collection, cb) {
3033
cb(err, self._collection);
3134
}
3235
}
33-
);
36+
);*/
3437
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "agenda",
3-
"version": "3.1.0",
2+
"name": "@hokify/agenda",
3+
"version": "3.1.4",
44
"description": "Light weight job scheduler for Node.js",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)