Fix payload in getdaily

This commit is contained in:
Matthias 2020-06-12 06:58:44 +02:00
parent 9878169030
commit d2575665a3

View File

@ -123,7 +123,8 @@ export default {
.then((result) => commit('updateBalance', result.data)) .then((result) => commit('updateBalance', result.data))
.catch(console.error); .catch(console.error);
}, },
getDaily({ commit }, timescale = 15) { getDaily({ commit }, payload = {}) {
const { timescale = 20 } = payload;
return api return api
.get('/daily', { params: { timescale } }) .get('/daily', { params: { timescale } })
.then((result) => commit('updateDaily', result.data)) .then((result) => commit('updateDaily', result.data))