diff --git a/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts b/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts index 881edb4..809419c 100644 --- a/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts +++ b/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts @@ -10,7 +10,7 @@ describe('GetSongSuggestions', () => { }) it('should return suggestions for a song', async () => { - const suggestions = await getSongSuggestions.execute({ songId: '8N_6I8Gn', limit: 5 }) + const suggestions = await getSongSuggestions.execute({ songId: 'P3qdsetQ', limit: 5 }) expect(() => SongModel.parse(suggestions[0])).not.toThrow() expect(suggestions.length).toBe(5) diff --git a/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.ts b/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.ts index 731be88..63ea79c 100644 --- a/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.ts +++ b/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.ts @@ -22,6 +22,7 @@ export class GetSongSuggestionsUseCase implements IUseCase>({ endpoint: Endpoints.songs.suggestions, params: { @@ -31,19 +32,19 @@ export class GetSongSuggestionsUseCase implements IUseCase element && createSongPayload(element.song)) .filter(Boolean) .slice(0, limit) || [] - - return songs + ) } }