mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
fmt
This commit is contained in:
@@ -143,7 +143,9 @@ describe(SearchController.name, () => {
|
||||
.post('/search/metadata')
|
||||
.send({ filter: { previewPath: { eq: 'preview.webp' } } });
|
||||
expect(status).toBe(400);
|
||||
expect(body).toEqual(errorDto.validationError([{ path: ['filter'], message: 'Unrecognized key: "previewPath"' }]));
|
||||
expect(body).toEqual(
|
||||
errorDto.validationError([{ path: ['filter'], message: 'Unrecognized key: "previewPath"' }]),
|
||||
);
|
||||
});
|
||||
|
||||
it('should reject a nested or', async () => {
|
||||
|
||||
@@ -526,11 +526,7 @@ export class SearchRepository {
|
||||
|
||||
// TODO(v4): drop the V3 suffix once the legacy methods are removed
|
||||
@GenerateSql(...searchMetadataV3Examples)
|
||||
async searchMetadataV3(
|
||||
pagination: PaginationOptions,
|
||||
options: AssetSearchBuilderV3Options,
|
||||
scope: AssetSearchScope,
|
||||
) {
|
||||
async searchMetadataV3(pagination: PaginationOptions, options: AssetSearchBuilderV3Options, scope: AssetSearchScope) {
|
||||
const items = await withSearchOrder(searchAssetBuilder(this.db, options, scope), options.order)
|
||||
.select(columns.searchAsset)
|
||||
.limit(pagination.take + 1)
|
||||
|
||||
Reference in New Issue
Block a user