removed duplicate route name variable

This commit is contained in:
2022-03-28 12:52:06 +01:00
parent de86f086eb
commit 6ee5901089
@@ -27,7 +27,7 @@ const ApiResponse = async (req, res) => {
let x = canvas.width / 2 + 80;
let y = canvas.height - canvas.height / 2.5;
let imageStr = imageRef.weeks;
let imageStr = imageRef.weekstoday;
console.log(imageStr, x, y);
ctx.lineWidth = 25;
@@ -70,7 +70,7 @@ const ApiResponse = async (req, res) => {
res.setHeader(
"content-disposition",
"attachment; filename=" + imageRef.weeks + "-weeks.png"
"attachment; filename=" + imageRef.weekstoday + "-weeks.png"
);
res.status(200).send(png);
};