fix: send calendar heartbeat as post

This commit is contained in:
2026-04-04 17:58:59 +00:00
parent f3a38d6455
commit 7f86073fe7

View File

@@ -14,7 +14,7 @@
* Default backendUrl: "https://monitor.hangman-lab.top"
*
* Endpoints used:
* GET /calendar/agent/heartbeat — fetch pending slots
* POST /calendar/agent/heartbeat — fetch pending slots
* PATCH /calendar/slots/{id}/agent-update — update real slot status
* PATCH /calendar/slots/virtual/{vid}/agent-update — update virtual slot status
*
@@ -77,7 +77,7 @@ export class CalendarBridgeClient {
try {
const response = await this.fetchJson<CalendarHeartbeatResponse>(url, {
method: 'GET',
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Agent-ID': this.config.agentId,