Ensure that only non deleted files are fetched from the DB
This commit is contained in:
parent
0376bcbe07
commit
568947fbf6
1 changed files with 2 additions and 2 deletions
|
@ -432,7 +432,7 @@ class FilesDB {
|
|||
final db = await instance.database;
|
||||
final rows = await db.query(
|
||||
table,
|
||||
where: '$columnCollectionID =?',
|
||||
where: '$columnCollectionID = ? AND $columnIsDeleted = 0',
|
||||
whereArgs: [collectionID],
|
||||
orderBy: '$columnCreationTime DESC',
|
||||
limit: 1,
|
||||
|
@ -448,7 +448,7 @@ class FilesDB {
|
|||
final db = await instance.database;
|
||||
final rows = await db.query(
|
||||
table,
|
||||
where: '$columnCollectionID =?',
|
||||
where: '$columnCollectionID = ? AND $columnIsDeleted = 0',
|
||||
whereArgs: [collectionID],
|
||||
orderBy: '$columnUpdationTime DESC',
|
||||
limit: 1,
|
||||
|
|
Loading…
Add table
Reference in a new issue