ensures that the parentId of the root is null

This commit is contained in:
skilion 2018-01-06 19:27:27 +01:00
parent d624aec3ad
commit abad626b3d

View file

@ -199,6 +199,7 @@ final class SyncEngine
if (isItemRoot(driveItem) || !item.parentId || isRoot) {
log.vlog("Root");
item.parentId = null; // ensures that it has no parent
item.driveId = driveId; // HACK: makeItem() cannot set the driveId propery of the root
itemdb.upsert(item);
return;