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