This commit is contained in:
timonrieger
2026-07-26 16:46:29 +02:00
parent 9b3787171a
commit 3d64b3e11b
2 changed files with 4 additions and 6 deletions
@@ -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 () => {
+1 -5
View File
@@ -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)