Skip to content
Snippets Groups Projects
Commit fa6497f9 authored by Éloïs's avatar Éloïs
Browse files

[fix] membersCount : bug with stepUnit block

parent e7d2813b
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ module.exports = (req, res, next) => co(function *() { ...@@ -70,7 +70,7 @@ module.exports = (req, res, next) => co(function *() {
{ {
switch (req.query.stepUnit) 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 "hours": unitTime = 3600; cache.onlyDate = false; cache.stepUnit = "hours"; break;
case "days": unitTime = 86400; cache.onlyDate = true; cache.stepUnit = "days"; break; case "days": unitTime = 86400; cache.onlyDate = true; cache.stepUnit = "days"; break;
case "weeks": unitTime = 604800; cache.onlyDate = true; cache.stepUnit = "weeks"; break; case "weeks": unitTime = 604800; cache.onlyDate = true; cache.stepUnit = "weeks"; break;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
const co = require('co') const co = require('co')
const timestampToDatetime = require(__dirname + '/../lib/timestampToDatetime') const timestampToDatetime = require(__dirname + '/../lib/timestampToDatetime')
const getLang = require(__dirname + '/../lib/getLang') 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; //const STEP_COUNT_MAX = 150;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment