Skip to content

Commit 9d919e4

Browse files
Fixed demo file extension on remote upload (#266)
1 parent 2665f70 commit 9d919e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/v2/demoapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ router.post("/", async (req: Request, res: Response) => {
150150
});
151151
// Update map stats object to include the link to the demo.
152152
updateStmt = {
153-
demoFile: demoFilename.replace("dem", "zip")
153+
demoFile: demoFilename.replace(".dem", ".zip")
154154
};
155155
updateStmt = await db.buildUpdateStatement(updateStmt);
156156

0 commit comments

Comments
 (0)