fix(server): /search/random failing with certain options (#13040)

* fix relation handling, remove pagination

* update api, sql

* update mock
This commit is contained in:
Mert 2024-09-30 00:29:35 -04:00 committed by GitHub
parent 2f13db51df
commit 7adb35e59e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 250 additions and 62 deletions

View file

@ -32,7 +32,7 @@ export class SearchController {
@Post('random')
@HttpCode(HttpStatus.OK)
@Authenticated()
searchRandom(@Auth() auth: AuthDto, @Body() dto: RandomSearchDto): Promise<SearchResponseDto> {
searchRandom(@Auth() auth: AuthDto, @Body() dto: RandomSearchDto): Promise<AssetResponseDto[]> {
return this.service.searchRandom(auth, dto);
}