1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 00:36:47 +01:00

fix(server): not in album filter with context search (#7275)

This commit is contained in:
Alex 2024-02-20 20:44:34 -06:00 committed by GitHub
parent e33fd40b4c
commit bb5236ae65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -9435,6 +9435,9 @@
"isMotion": {
"type": "boolean"
},
"isNotInAlbum": {
"type": "boolean"
},
"isOffline": {
"type": "boolean"
},

View file

@ -3880,6 +3880,12 @@ export interface SmartSearchDto {
* @memberof SmartSearchDto
*/
'isMotion'?: boolean;
/**
*
* @type {boolean}
* @memberof SmartSearchDto
*/
'isNotInAlbum'?: boolean;
/**
*
* @type {boolean}

Binary file not shown.

View file

@ -118,6 +118,9 @@ class BaseSearchDto {
@Type(() => Number)
@Optional()
size?: number;
@QueryBoolean({ optional: true })
isNotInAlbum?: boolean;
}
export class MetadataSearchDto extends BaseSearchDto {
@ -170,9 +173,6 @@ export class MetadataSearchDto extends BaseSearchDto {
@ApiProperty({ enumName: 'AssetOrder', enum: AssetOrder })
order?: AssetOrder;
@QueryBoolean({ optional: true })
isNotInAlbum?: boolean;
@Optional()
personIds?: string[];
}