Commit fa6497f9 authored by Éloïs's avatar Éloïs

[fix] membersCount : bug with stepUnit block

parent e7d2813b
......@@ -70,7 +70,7 @@ module.exports = (req, res, next) => co(function *() {
{
switch (req.query.stepUnit)
{
case "blocks": unitTime = 3600; cache.onlyDate = false; cache.stepUnit = "blocks"; break;
case "blocks": unitTime = 300; cache.onlyDate = false; cache.stepUnit = "blocks"; break;
case "hours": unitTime = 3600; cache.onlyDate = false; cache.stepUnit = "hours"; break;
case "days": unitTime = 86400; cache.onlyDate = true; cache.stepUnit = "days"; break;
case "weeks": unitTime = 604800; cache.onlyDate = true; cache.stepUnit = "weeks"; break;
......
......@@ -3,7 +3,7 @@
const co = require('co')
const timestampToDatetime = require(__dirname + '/../lib/timestampToDatetime')
const getLang = require(__dirname + '/../lib/getLang')
//const constants = require(__dirname + '/../lib/constants.js')
const constants = require(__dirname + '/../lib/constants.js')
//const STEP_COUNT_MAX = 150;
......
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