1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-27 22:22:45 +01:00

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

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
mobile/openapi
open-api
server/src/domain/search/dto

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

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

View file

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

Binary file not shown.

View file

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