Update statement to fetch files within a path

This commit is contained in:
Vishnu Mohandas 2020-11-26 17:08:49 +05:30
parent 3efd11c4c3
commit 87672faf62

View file

@ -176,7 +176,8 @@ class FilesDB {
final db = await instance.database;
final results = await db.query(
table,
where: '$columnLocalID IS NOT NULL AND $columnDeviceFolder = ?',
where:
'$columnLocalID IS NOT NULL AND $columnDeviceFolder = ? AND $columnIsDeleted = 0',
whereArgs: [path],
orderBy: '$columnCreationTime DESC',
groupBy: '$columnLocalID',