removed duplicate route name variable
This commit is contained in:
@@ -27,7 +27,7 @@ const ApiResponse = async (req, res) => {
|
|||||||
|
|
||||||
let x = canvas.width / 2 + 80;
|
let x = canvas.width / 2 + 80;
|
||||||
let y = canvas.height - canvas.height / 2.5;
|
let y = canvas.height - canvas.height / 2.5;
|
||||||
let imageStr = imageRef.weeks;
|
let imageStr = imageRef.weekstoday;
|
||||||
|
|
||||||
console.log(imageStr, x, y);
|
console.log(imageStr, x, y);
|
||||||
ctx.lineWidth = 25;
|
ctx.lineWidth = 25;
|
||||||
@@ -70,7 +70,7 @@ const ApiResponse = async (req, res) => {
|
|||||||
|
|
||||||
res.setHeader(
|
res.setHeader(
|
||||||
"content-disposition",
|
"content-disposition",
|
||||||
"attachment; filename=" + imageRef.weeks + "-weeks.png"
|
"attachment; filename=" + imageRef.weekstoday + "-weeks.png"
|
||||||
);
|
);
|
||||||
res.status(200).send(png);
|
res.status(200).send(png);
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user