From 7f86073fe7010b67d2caff9277fc591fd6b30654 Mon Sep 17 00:00:00 2001 From: orion Date: Sat, 4 Apr 2026 17:58:59 +0000 Subject: [PATCH] fix: send calendar heartbeat as post --- plugin/calendar/calendar-bridge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/calendar/calendar-bridge.ts b/plugin/calendar/calendar-bridge.ts index 07644ce..213e897 100644 --- a/plugin/calendar/calendar-bridge.ts +++ b/plugin/calendar/calendar-bridge.ts @@ -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(url, { - method: 'GET', + method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Agent-ID': this.config.agentId,