浏览代码

fix(server): without queries (#2621)

Jason Rasmussen 2 年之前
父节点
当前提交
9730bf0acc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/libs/infra/src/repositories/asset.repository.ts

+ 2 - 2
server/libs/infra/src/repositories/asset.repository.ts

@@ -117,7 +117,6 @@ export class AssetRepository implements IAssetRepository {
         };
         where = {
           isVisible: true,
-          resizePath: Not(IsNull()),
           exifInfo: {
             assetId: IsNull(),
           },
@@ -130,6 +129,7 @@ export class AssetRepository implements IAssetRepository {
         };
         where = {
           isVisible: true,
+          resizePath: Not(IsNull()),
           smartInfo: {
             clipEmbedding: IsNull(),
           },
@@ -141,7 +141,7 @@ export class AssetRepository implements IAssetRepository {
           smartInfo: true,
         };
         where = {
-          resizePath: IsNull(),
+          resizePath: Not(IsNull()),
           isVisible: true,
           smartInfo: {
             tags: IsNull(),