From f1ffdfe22326fa0d211e64f9c5539dc7691efc4f Mon Sep 17 00:00:00 2001 From: Yaros Date: Thu, 30 Apr 2026 19:48:57 +0200 Subject: [PATCH] chore: add todos & warning --- server/src/dtos/time-bucket.dto.ts | 3 ++- server/src/repositories/asset.repository.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/dtos/time-bucket.dto.ts b/server/src/dtos/time-bucket.dto.ts index 5e3fe866df..b43e9b5235 100644 --- a/server/src/dtos/time-bucket.dto.ts +++ b/server/src/dtos/time-bucket.dto.ts @@ -27,7 +27,8 @@ const TimeBucketQueryBaseSchema = z 'Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)', ), withCoordinates: stringToBool.optional().describe('Include location data in the response'), - withSharedAlbums: z.boolean().optional().describe('Include assets from shared albums'), + // TODO: Remove this after #12614 is resolved + withSharedAlbums: z.boolean().optional().describe('Include assets from shared albums (do not use!)'), key: z.string().optional(), slug: z.string().optional(), bbox: z diff --git a/server/src/repositories/asset.repository.ts b/server/src/repositories/asset.repository.ts index 9153aecf1b..1f671d56de 100644 --- a/server/src/repositories/asset.repository.ts +++ b/server/src/repositories/asset.repository.ts @@ -678,6 +678,7 @@ export class AssetRepository { qb.where((eb) => eb.or([ eb('asset.ownerId', '=', anyUuid(options.userIds!)), + // TODO: Rework, this is inefficient, temporary solution until #12614 is resolved ...(options.withSharedAlbums ? [ eb.exists(