Skip to content

Commit cd218df

Browse files
committed
fix(search): remove 10-song limit on query with random sort
1 parent 7b13b23 commit cd218df

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

apps/backend/src/song/song.controller.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ export class SongController {
105105
): Promise<PageDto<SongPreviewDto>> {
106106
// Handle random sort
107107
if (query.sort === SongSortType.RANDOM) {
108-
if (query.limit && (query.limit < 1 || query.limit > 10)) {
109-
throw new BadRequestException(
110-
'Limit must be between 1 and 10 for random sort',
111-
);
112-
}
113108
const data = await this.songService.getRandomSongs(
114109
query.limit ?? 1,
115110
query.category,

0 commit comments

Comments
 (0)