mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03: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)',
|
'Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)',
|
||||||
),
|
),
|
||||||
withCoordinates: stringToBool.optional().describe('Include location data in the response'),
|
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(),
|
key: z.string().optional(),
|
||||||
slug: z.string().optional(),
|
slug: z.string().optional(),
|
||||||
bbox: z
|
bbox: z
|
||||||
|
|||||||
@@ -678,6 +678,7 @@ export class AssetRepository {
|
|||||||
qb.where((eb) =>
|
qb.where((eb) =>
|
||||||
eb.or([
|
eb.or([
|
||||||
eb('asset.ownerId', '=', anyUuid(options.userIds!)),
|
eb('asset.ownerId', '=', anyUuid(options.userIds!)),
|
||||||
|
// TODO: Rework, this is inefficient, temporary solution until #12614 is resolved
|
||||||
...(options.withSharedAlbums
|
...(options.withSharedAlbums
|
||||||
? [
|
? [
|
||||||
eb.exists(
|
eb.exists(
|
||||||
|
|||||||
Reference in New Issue
Block a user