summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-23 01:06:52 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-23 02:10:40 +0100
commit924101c4c0ed18f5bae2ee83de368a4f1f0bee51 (patch)
tree9411297d7b853db28466690a508b916b6b897677 /server.js
parentb88d328bf3a452bdfbf5e0dd1d5860bbbeae7f10 (diff)
downloadserver-924101c4c0ed18f5bae2ee83de368a4f1f0bee51.tar.gz
Fix function name typo.
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index ba0de61..934b01d 100644
--- a/server.js
+++ b/server.js
@@ -1684,7 +1684,7 @@ app.get('/delete/:game_id', must_be_logged_in, function (req, res) {
res.redirect('/'+title_id)
})
-function insert_replay_players(old_game_id, new_game_id, req_user_id, order) {
+function insert_rematch_players(old_game_id, new_game_id, req_user_id, order) {
let game = SQL_SELECT_GAME.get(old_game_id)
let players = SQL_SELECT_PLAYERS_JOIN.all(old_game_id)
let roles = get_game_roles(game.title_id, game.scenario, parse_game_options(game.options))
@@ -1746,7 +1746,7 @@ app.post('/rematch/:old_game_id', must_be_logged_in, function (req, res) {
try {
new_game_id = SQL_INSERT_REMATCH.get({owner_id: req.user.user_id, random: order === "random" ? 1 : 0, old_game_id, magic})
if (new_game_id)
- insert_replay_players(old_game_id, new_game_id, req.user.user_id, order)
+ insert_rematch_players(old_game_id, new_game_id, req.user.user_id, order)
else
new_game_id = SQL_SELECT_REMATCH.get(magic)
SQL_COMMIT.run()