cosmetics
This commit is contained in:
parent
53b59c8920
commit
3aaced724c
|
@ -55,11 +55,11 @@ const syncMan = (() => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
async delete(_id, rev) {
|
async delete(...args) {
|
||||||
if (ready.then) await ready;
|
if (ready.then) await ready;
|
||||||
if (!currentDrive) return;
|
if (!currentDrive) return;
|
||||||
schedule();
|
schedule();
|
||||||
return ctrl.delete(_id, rev);
|
return ctrl.delete(...args);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @returns {Promise<SyncManager.Status>} */
|
/** @returns {Promise<SyncManager.Status>} */
|
||||||
|
@ -196,7 +196,7 @@ const syncMan = (() => {
|
||||||
delete doc.id;
|
delete doc.id;
|
||||||
if (id) doc.id = id;
|
if (id) doc.id = id;
|
||||||
doc.id = await db.styles.put(doc);
|
doc.id = await db.styles.put(doc);
|
||||||
return styleUtil.handleSave(doc, {reason: 'sync'});
|
await styleUtil.handleSave(doc, {reason: 'sync'});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onDelete(_id, rev) {
|
onDelete(_id, rev) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user