mirror of
https://github.com/immich-app/immich.git
synced 2026-05-23 08:02:29 -04:00
chore: add todos & warning
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user