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(
table,
where:
'$columnDeviceFolder = ? AND $columnIsDeleted = 0 AND $columnCreationTime < ?',
'$columnLocalID IS NOT NULL AND $columnDeviceFolder = ? AND $columnIsDeleted = 0 AND $columnCreationTime < ?',
whereArgs: [path, beforeCreationTime],
orderBy: '$columnCreationTime DESC',
groupBy: '$columnLocalID',
limit: limit,
);
return _convertToFiles(results);