add mock data for month api endpoint
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
This commit is contained in:
@@ -32,7 +32,7 @@ var sessionStore = new MySQLStore({
|
||||
|
||||
const mockDataDay = require('./mockdata-test/day.json');
|
||||
const mockDataWeek = require('./mockdata-test/week.json');
|
||||
//const mockDataMonth = require('./mockdata-test/month.json');
|
||||
const mockDataMonth = require('./mockdata-test/month.json');
|
||||
var resourceList;
|
||||
const saltRounds = 13;
|
||||
|
||||
@@ -246,7 +246,7 @@ app.get('/API/month', function (req, res) {
|
||||
const kind = parseInt(req.query.kind);
|
||||
if (Number.isInteger(kind)) {
|
||||
//Mock Data:
|
||||
//if (kind === -1 || DEBUG) return res.send(mockDataMonth);
|
||||
if (kind === -1 || DEBUG) return res.send(mockDataMonth);
|
||||
|
||||
if (kind >= 1 && kind <= 113) {
|
||||
var day = new Date();
|
||||
|
||||
Reference in New Issue
Block a user