From e9c46db38a65e51f7056088310046f3da4ee37b1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 Jun 2020 20:23:54 +0200 Subject: [PATCH] Allow different scales for daily query --- src/store/modules/ftbot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/ftbot.ts b/src/store/modules/ftbot.ts index 0e9264e6..1d970606 100644 --- a/src/store/modules/ftbot.ts +++ b/src/store/modules/ftbot.ts @@ -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); },