Fix device folder entries

This commit is contained in:
Vishnu Mohandas 2020-11-01 11:19:15 +05:30
parent 5ec0932021
commit 6270ce27c8

View file

@ -175,9 +175,10 @@ class FilesDB {
final results = await db.query( final results = await db.query(
table, table,
where: where:
'$columnDeviceFolder = ? AND $columnIsDeleted = 0 AND $columnCreationTime < ?', '$columnLocalID IS NOT NULL AND $columnDeviceFolder = ? AND $columnIsDeleted = 0 AND $columnCreationTime < ?',
whereArgs: [path, beforeCreationTime], whereArgs: [path, beforeCreationTime],
orderBy: '$columnCreationTime DESC', orderBy: '$columnCreationTime DESC',
groupBy: '$columnLocalID',
limit: limit, limit: limit,
); );
return _convertToFiles(results); return _convertToFiles(results);