Skip to content

Commit

Permalink
Rename do_reconnect_gameserver to reconnect_gameserver
Browse files Browse the repository at this point in the history
  • Loading branch information
cemathey committed May 28, 2024
1 parent dfe1f95 commit 6839794
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions rcongui/src/components/RconSettings/rconSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,8 @@ class RconSettings extends React.Component {
}

async reconnectToGameServer() {
return postData(
`${process.env.REACT_APP_API_URL}do_reconnect_gameserver`,
{}
)
.then((res) => showResponse(res, "do_reconnect_gameserver", true))
return postData(`${process.env.REACT_APP_API_URL}reconnect_gameserver`, {})
.then((res) => showResponse(res, "reconnect_gameserver", true))
.catch(handle_http_errors);
}

Expand Down
2 changes: 1 addition & 1 deletion rconweb/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_api_documentation(request):
("describe_real_vip_config", user_settings.describe_real_vip_config),
("get_all_discord_webhooks_config", user_settings.get_all_discord_webhooks_config),
("get_all_standard_message_config", user_settings.get_all_standard_message_config),
("do_reconnect_gameserver", views.restart_gunicorn),
("reconnect_gameserver", views.restart_gunicorn),
] + [(name, func) for name, func in views.commands]

# Expose endpoints though Django
Expand Down

0 comments on commit 6839794

Please sign in to comment.