Skip to content

High performance self-hosted photo and video management solution.

fix(server): without queries (#2621)

Jason Rasmussen9730bf0accf6
diff --git a/server/libs/infra/src/repositories/asset.repository.ts b/server/libs/infra/src/repositories/asset.repository.ts
index a2dd3775cc..ec836623c4 100644
--- a/server/libs/infra/src/repositories/asset.repository.ts
+++ b/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(),