Skip to content

Commit

Permalink
fix(server): not in album filter with context search (#7275)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Feb 21, 2024
1 parent e33fd40 commit bb5236a
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 4 deletions.
1 change: 1 addition & 0 deletions mobile/openapi/doc/SmartSearchDto.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion mobile/openapi/lib/model/smart_search_dto.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions mobile/openapi/test/smart_search_dto_test.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions open-api/immich-openapi-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9435,6 +9435,9 @@
"isMotion": {
"type": "boolean"
},
"isNotInAlbum": {
"type": "boolean"
},
"isOffline": {
"type": "boolean"
},
Expand Down
6 changes: 6 additions & 0 deletions open-api/typescript-sdk/axios-client/api.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions open-api/typescript-sdk/fetch-client.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions server/src/domain/search/dto/search.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ class BaseSearchDto {
@Type(() => Number)
@Optional()
size?: number;

@QueryBoolean({ optional: true })
isNotInAlbum?: boolean;
}

export class MetadataSearchDto extends BaseSearchDto {
Expand Down Expand Up @@ -170,9 +173,6 @@ export class MetadataSearchDto extends BaseSearchDto {
@ApiProperty({ enumName: 'AssetOrder', enum: AssetOrder })
order?: AssetOrder;

@QueryBoolean({ optional: true })
isNotInAlbum?: boolean;

@Optional()
personIds?: string[];
}
Expand Down

0 comments on commit bb5236a

Please sign in to comment.