Fix incorrect id tag

* Fix incorrect id tage when checking database if item exists
This commit is contained in:
abraunegg 2018-05-15 07:15:54 +10:00
parent 8b0e9513e3
commit 0b1ca6dbfd

View file

@ -491,7 +491,7 @@ final class SyncEngine
string oldPath;
if (cached && item.eTag != oldItem.eTag) {
// Is the item in the local database
if (itemdb.idInLocalDatabase(item.driveId, item.parentId)){
if (itemdb.idInLocalDatabase(item.driveId, item.id)){
oldPath = itemdb.computePath(item.driveId, item.id);
if (!isItemSynced(oldItem, oldPath)) {
log.vlog("The local item is unsynced, renaming");