浏览代码

getAllUploadedFiles: remove redundant null check for owner_id

Neeraj Gupta 3 年之前
父节点
当前提交
99eaf37882
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,