Adding batch support

This commit is contained in:
Fabian Stamm
2019-12-01 03:34:25 +01:00
parent 2ac9def153
commit 904b986e22
8 changed files with 637 additions and 2130 deletions

View File

@ -8,6 +8,7 @@ export default class DocumentLock {
}
async lock(collection: string = "", document: string = "") {
//TODO: Check collection locks
let key = collection + "/" + document;
let l = this.locks.get(key);
if (l)