From 9d919e4c86b8949b949b5b73b86f1b37a40d8c30 Mon Sep 17 00:00:00 2001 From: Shobhit Pathak <140690706+shobhit-pathak@users.noreply.github.com> Date: Tue, 19 Dec 2023 02:46:31 +0530 Subject: [PATCH] Fixed demo file extension on remote upload (#266) --- src/routes/v2/demoapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/v2/demoapi.ts b/src/routes/v2/demoapi.ts index af9c5a7..7f3d8d4 100644 --- a/src/routes/v2/demoapi.ts +++ b/src/routes/v2/demoapi.ts @@ -150,7 +150,7 @@ router.post("/", async (req: Request, res: Response) => { }); // Update map stats object to include the link to the demo. updateStmt = { - demoFile: demoFilename.replace("dem", "zip") + demoFile: demoFilename.replace(".dem", ".zip") }; updateStmt = await db.buildUpdateStatement(updateStmt);