Skip to content

Commit

Permalink
debug: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Aug 8, 2024
1 parent f79aa2e commit 9fd1995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/heatmap.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const heatmapChart = catchAsync(async function (req: IAuthAndPlatform, res: Resp
return res.send(charts.fillHeatmapChart([]));
}
const platformConnection = await DatabaseManager.getInstance().getPlatformDb(req.platform?.id);
console.log(await platformConnection.models.HeatMap.find({}));
console.log('SALAM', await platformConnection.models.HeatMap.find({}));
let heatmaps = await heatmapService.getHeatmapChart(platformConnection, req.body);
const timeZoneOffset = parseInt(moment().tz(req.body.timeZone).format('Z'));

Expand All @@ -23,7 +23,7 @@ const heatmapChart = catchAsync(async function (req: IAuthAndPlatform, res: Resp

const lineGraph = catchAsync(async function (req: IAuthAndPlatform, res: Response) {
const platformConnection = await DatabaseManager.getInstance().getPlatformDb(req.platform?.id);
console.log(await platformConnection.models.HeatMap.find({}));
console.log('SALAM', await platformConnection.models.HeatMap.find({}));
let lineGraph = await heatmapService.lineGraph(platformConnection, req.body.startDate, req.body.endDate);
lineGraph = charts.fillHeatmapLineGraph(lineGraph, req.body.startDate, req.body.endDate);
res.send(lineGraph);
Expand Down

0 comments on commit 9fd1995

Please sign in to comment.