Allow different scales for daily query

This commit is contained in:
Matthias 2020-06-11 20:23:54 +02:00
parent 85b5e2abaf
commit e9c46db38a

View File

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