post not get

This commit is contained in:
Amber 2025-06-14 20:14:59 +01:00
parent 218c96a4c6
commit 4cf6455715
No known key found for this signature in database
GPG key ID: 81E4B6CCB9561611

View file

@ -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()}"