Skip to content

Commit

Permalink
Merge pull request #4 from rpkaul/master
Browse files Browse the repository at this point in the history
  • Loading branch information
xe1os authored Jan 3, 2024
2 parents 6b9277e + b290baa commit 91cfb9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if (config.get("server.useRedis")) {
resave: false,
saveUninitialized: true,
store: new redisStore(redisCfg),
cookie: { maxAge: 86400000 },
cookie: { maxAge: 2628000000 },
})
);
} else {
Expand All @@ -88,7 +88,7 @@ if (config.get("server.useRedis")) {
name: "G5API",
resave: false,
saveUninitialized: true,
cookie: { maxAge: 86400000 },
cookie: { maxAge: 2628000000 },
})
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/matches/matchserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ router.get(
start_time: new Date().toISOString().slice(0, 19).replace("T", " "),
end_time: new Date().toISOString().slice(0, 19).replace("T", " "),
winner: teamIdWinner,
team1_score: req.params.winner_id == 1 ? 16 : 0,
team2_score: req.params.winner_id == 2 ? 16 : 0,
team1_score: req.params.winner_id == 1 ? 13 : 0,
team2_score: req.params.winner_id == 2 ? 13 : 0,
match_id: req.params.match_id,
};
let matchUpdateStmt = {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v2/demoapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 91cfb9e

Please sign in to comment.