mirror of
https://github.com/System-End/nephthys.git
synced 2026-04-19 22:05:12 +00:00
post not get
This commit is contained in:
parent
218c96a4c6
commit
4cf6455715
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ async def on_message(event: Dict[str, Any], client: AsyncWebClient):
|
|||
)
|
||||
|
||||
if env.uptime_url and env.environment == "production":
|
||||
async with env.session.post(env.uptime_url) as res:
|
||||
async with env.session.get(env.uptime_url) as res:
|
||||
if res.status != 200:
|
||||
await send_heartbeat(
|
||||
f"Failed to ping uptime URL: {res.status} - {await res.text()}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue