getAllUploadedFiles: remove redundant null check for owner_id

This commit is contained in:
Neeraj Gupta 2021-09-15 09:52:11 +05:30
parent c7da836656
commit 99eaf37882
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -338,7 +338,7 @@ class FilesDB {
final results = await db.query(
table,
where:
'$columnCreationTime >= ? AND $columnCreationTime <= ? AND ($columnOwnerID IS NULL OR $columnOwnerID = ?) AND ($columnCollectionID IS NOT NULL AND $columnCollectionID IS NOT -1)',
'$columnCreationTime >= ? AND $columnCreationTime <= ? AND $columnOwnerID = ? AND ($columnCollectionID IS NOT NULL AND $columnCollectionID IS NOT -1)',
whereArgs: [startTime, endTime, ownerID],
orderBy:
'$columnCreationTime ' + order + ', $columnModificationTime ' + order,