Browse Source

fix(server): without queries (#2621)

Jason Rasmussen 2 years ago
parent
commit
9730bf0acc
1 changed files with 2 additions and 2 deletions
  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(),