chore: add todos & warning

This commit is contained in:
Yaros
2026-04-30 19:48:57 +02:00
parent 44a77892f4
commit f1ffdfe223
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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
@@ -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(