assert on item select

This commit is contained in:
skilion 2015-09-19 14:14:51 +02:00
parent 59d7c0c311
commit 5c6ed227a7

View file

@ -168,7 +168,8 @@ final class SyncEngine
itemdb.insert(id, name, type, eTag, cTag, mtime, parentId, crc32);
}
Item newItem;
itemdb.selectById(id, newItem);
bool found = itemdb.selectById(id, newItem);
assert(found);
// TODO add item in the db only if correctly downloaded
try {