Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[PAY-1833] Increase trending playlists fetch limit (#4066)
Browse files Browse the repository at this point in the history
Co-authored-by: Saliou Diallo <saliou@audius.co>
  • Loading branch information
sddioulde and Saliou Diallo authored Sep 9, 2023
1 parent 37bfd6d commit a72a9e1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ function* getPlaylists({ limit, offset }: { limit: number; offset: number }) {

const currentUserId = yield* select(getUserId)

// Temporary fix:
// For some reason, limit is 3 and we are not getting enough playlists back,
// maybe due to some bug in the lineup.
// Setting the limit to 10 so we at least get enough playlists back from first fetch for now.
const TMP_LIMIT = 10
let playlists: UserCollectionMetadata[] = yield* call(
(args) => apiClient.getTrendingPlaylists(args),
{
currentUserId,
limit,
limit: TMP_LIMIT,
offset,
time
}
Expand Down

0 comments on commit a72a9e1

Please sign in to comment.