Update week query

parent 91a0096e
......@@ -57,7 +57,7 @@ const refTotal = db.collection('consumptions').orderBy('date', 'desc')
store.commit('updateStatsTotal', generateRanks(snapshot));
});
const refWeek = db.collection('consumptions').where('date', '>', new Date('2018-09-02')).orderBy('date', 'desc')
const refWeek = db.collection('consumptions').where('date', '>', new Date('2018-09-16')).orderBy('date', 'desc')
.onSnapshot(snapshot => {
store.commit('updateStatsWeek', generateRanks(snapshot));
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment