Increased page size for favorites fetch to reduce HTTP roundtrip

environments/review-front-funk-4sh69p/deployments/30
Eliot Berriot 2018-07-23 23:21:32 +02:00
rodzic 1f08475017
commit 50fb5543c9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,8 @@ export default {
fetch ({dispatch, state, commit, rootState}, url) {
// will fetch favorites by batches from API to have them locally
let params = {
user: rootState.auth.profile.id
user: rootState.auth.profile.id,
page_size: 50
}
url = url || 'favorites/tracks/'
return axios.get(url, {params: params}).then((response) => {