fixup for uuidIndex when deleting

This commit is contained in:
tophf 2022-01-24 00:02:15 +03:00
parent 8fb09f1a03
commit 7ba319b872

View File

@ -58,9 +58,9 @@ const syncMan = (() => {
async delete(_id, rev) {
if (ready.then) await ready;
uuidIndex.delete(_id);
if (!currentDrive) return;
schedule();
uuidIndex.delete(_id);
return ctrl.delete(_id, rev);
},