Fix device folder entries
This commit is contained in:
parent
5ec0932021
commit
6270ce27c8
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue