Explorar o código

getAllUploadedFiles: remove redundant null check for owner_id

Neeraj Gupta %!s(int64=3) %!d(string=hai) anos
pai
achega
99eaf37882
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/db/files_db.dart

+ 1 - 1
lib/db/files_db.dart

@@ -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,