Browse Source

getAllUploadedFiles: remove redundant null check for owner_id

Neeraj Gupta 3 năm trước cách đây
mục cha
commit
99eaf37882
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,