mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-11 03:49:15 +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());
|
self.beforePut(docs, this.slot());
|
||||||
},
|
},
|
||||||
function() {
|
|
||||||
self._beforePutInProgress = false;
|
|
||||||
this.pass(null);
|
|
||||||
},
|
|
||||||
callback
|
callback
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nlevel.DocsSection.prototype._afterPut = function(docs, callback) {
|
||||||
|
this._beforePutInProgress = false;
|
||||||
|
callback();
|
||||||
|
};
|
||||||
|
|
||||||
function pickProjectName(build) {
|
function pickProjectName(build) {
|
||||||
return build.project.name;
|
return build.project.name;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"nci": "bin/nci"
|
"nci": "bin/nci"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --bail --reporter=spec test/index --timeout 3000",
|
"test": "mocha --bail --reporter=spec test/index --timeout 4000",
|
||||||
"dev": "gulp",
|
"dev": "gulp",
|
||||||
"sync": "npm install && npm prune && bower install && bower prune"
|
"sync": "npm install && npm prune && bower install && bower prune"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user