Commit a502cb47 authored by Robert Mysliveček's avatar Robert Mysliveček
Browse files

consumption - req.query

parent b47d4d18
......@@ -52,7 +52,7 @@ module.exports = {
},
consumption: function(req, res) {
const dateRange = req.body;
const dateRange = req.query;
const from = new Date(dateRange.from);
const to = new Date(dateRange.to);
const timeDiff = Math.abs(to.getTime() - from.getTime());
......
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