mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
- lint & format
This commit is contained in:
@@ -108,7 +108,7 @@ class BaseSearchDto {
|
|||||||
@ValidateUUID({ each: true, optional: true })
|
@ValidateUUID({ each: true, optional: true })
|
||||||
tagIds?: string[];
|
tagIds?: string[];
|
||||||
|
|
||||||
@ValidateUUID({each: true, optional: true})
|
@ValidateUUID({ each: true, optional: true })
|
||||||
albumIds?: string[];
|
albumIds?: string[];
|
||||||
|
|
||||||
@Optional()
|
@Optional()
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ export function searchAssetBuilder(kysely: Kysely<DB>, options: AssetSearchBuild
|
|||||||
.$if(options.isMotion !== undefined, (qb) =>
|
.$if(options.isMotion !== undefined, (qb) =>
|
||||||
qb.where('assets.livePhotoVideoId', options.isMotion ? 'is not' : 'is', null),
|
qb.where('assets.livePhotoVideoId', options.isMotion ? 'is not' : 'is', null),
|
||||||
)
|
)
|
||||||
.$if(!!options.isNotInAlbum && (!options.albumIds || options.albumIds.length == 0), (qb) =>
|
.$if(!!options.isNotInAlbum && (!options.albumIds || options.albumIds.length === 0), (qb) =>
|
||||||
qb.where((eb) =>
|
qb.where((eb) =>
|
||||||
eb.not(eb.exists((eb) => eb.selectFrom('albums_assets_assets').whereRef('assetsId', '=', 'assets.id'))),
|
eb.not(eb.exists((eb) => eb.selectFrom('albums_assets_assets').whereRef('assetsId', '=', 'assets.id'))),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user