Make sure that the file fetched for memories is not deleted

This commit is contained in:
Vishnu Mohandas 2020-07-20 20:37:44 +05:30
parent 2a4d64f195
commit e6b4619c52

View file

@ -132,7 +132,8 @@ class FilesDB {
final db = await instance.database;
final results = await db.query(
table,
where: '$columnCreationTime >= ? AND $columnCreationTime <= ?',
where:
'$columnCreationTime > ? AND $columnCreationTime < ? AND $columnIsDeleted = 0',
whereArgs: [startCreationTime, endCreationTime],
orderBy: '$columnCreationTime DESC',
);