mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-10 17:59:16 +00:00
fix db concurrency
This commit is contained in:
parent
cfe9c682ae
commit
75799493c0
9
db.js
9
db.js
@ -86,14 +86,15 @@ nlevel.DocsSection.prototype._beforePut = function(docs, callback) {
|
||||
|
||||
self.beforePut(docs, this.slot());
|
||||
},
|
||||
function() {
|
||||
self._beforePutInProgress = false;
|
||||
this.pass(null);
|
||||
},
|
||||
callback
|
||||
);
|
||||
};
|
||||
|
||||
nlevel.DocsSection.prototype._afterPut = function(docs, callback) {
|
||||
this._beforePutInProgress = false;
|
||||
callback();
|
||||
};
|
||||
|
||||
function pickProjectName(build) {
|
||||
return build.project.name;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
"nci": "bin/nci"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha --bail --reporter=spec test/index --timeout 3000",
|
||||
"test": "mocha --bail --reporter=spec test/index --timeout 4000",
|
||||
"dev": "gulp",
|
||||
"sync": "npm install && npm prune && bower install && bower prune"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user