Fix: arguments sent to sync.put is wrong

This commit is contained in:
eight 2019-10-16 16:34:03 +08:00
parent 31c1845b1b
commit cb8fc0e75b

View File

@ -154,7 +154,7 @@ const styleManager = (() => {
if (oldDoc) {
diff = compareRevision(oldDoc._rev, doc._rev);
if (diff > 0) {
sync.put(oldDoc);
sync.put(oldDoc._id, oldDoc._rev);
return;
}
}