Skip to content

Commit

Permalink
fix: skip index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Sep 19, 2020
1 parent 24f6a84 commit 5242736
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/agenda/db-init.js
Expand Up @@ -13,6 +13,9 @@ module.exports = function(collection, cb) {
const self = this;
debug('init database collection using name [%s]', collection);
this._collection = this._mdb.collection(collection || 'agendaJobs');

self.emit('ready');
/**
debug('attempting index creation');
this._collection.createIndex(
this._indices,
Expand All @@ -30,5 +33,5 @@ module.exports = function(collection, cb) {
cb(err, self._collection);
}
}
);
);*/
};
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "agenda",
"version": "3.1.0",
"name": "@hokify/agenda",
"version": "3.1.4",
"description": "Light weight job scheduler for Node.js",
"main": "index.js",
"files": [
Expand Down

0 comments on commit 5242736

Please sign in to comment.