We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b13b23 commit cd218dfCopy full SHA for cd218df
apps/backend/src/song/song.controller.ts
@@ -105,11 +105,6 @@ export class SongController {
105
): Promise<PageDto<SongPreviewDto>> {
106
// Handle random sort
107
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
- }
113
const data = await this.songService.getRandomSongs(
114
query.limit ?? 1,
115
query.category,
0 commit comments