Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: fixed use of wrong bucket
  • Loading branch information
ErikBjare committed Apr 28, 2020
1 parent afdf0fc commit 83d14ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/activity.ts
Expand Up @@ -193,7 +193,7 @@ const actions = {
async query_android({ state, commit }, { timeperiod, filterCategories }: QueryOptions) {
const periods = [timeperiodToStr(timeperiod)];
const classes = loadClassesForQuery();
const q = queries.appQuery(state.buckets.window[0], classes, filterCategories);
const q = queries.appQuery(state.buckets.android[0], classes, filterCategories);
const data = await this._vm.$aw.query(periods, q).catch(this.errorHandler);
commit('query_window_completed', data[0]);
},
Expand Down Expand Up @@ -268,7 +268,7 @@ const actions = {
});
const data = await this._vm.$aw.query(
periods,
queries.dailyActivityQueryAndroid(state.buckets.window[0])
queries.dailyActivityQueryAndroid(state.buckets.android[0])
);
let active_history = _.zipObject(periods, data);
active_history = _.mapValues(active_history, (duration, key) => {
Expand Down

0 comments on commit 83d14ca

Please sign in to comment.