diff --git a/server/src/infra/repositories/asset.repository.ts b/server/src/infra/repositories/asset.repository.ts index 23f927347f..74f7f7497e 100644 --- a/server/src/infra/repositories/asset.repository.ts +++ b/server/src/infra/repositories/asset.repository.ts @@ -398,7 +398,7 @@ export class AssetRepository implements IAssetRepository { } if (userId) { - builder = builder.where('asset.ownerId = :userId', { userId }); + builder = builder.andWhere('asset.ownerId = :userId', { userId }); } if (isArchived != undefined) {