From ac0e064e347f11953a55e6d1a9067bc96adf0f69 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sat, 6 Dec 2025 11:37:31 +0100 Subject: [PATCH] Fix answer response field names for V2 API compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change 'answererPeerId' to 'answererId' - Change 'answerSdp' to 'sdp' - Add 'topics' field (empty array) for client compatibility This ensures the server response matches the expected format in the client's AnsweredOffer interface. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/app.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.ts b/src/app.ts index 7f0541a..35cde5a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -535,9 +535,10 @@ export function createApp(storage: Storage, config: Config) { return c.json({ answers: offers.map(offer => ({ offerId: offer.id, - answererPeerId: offer.answererPeerId, - answerSdp: offer.answerSdp, - answeredAt: offer.answeredAt + answererId: offer.answererPeerId, + sdp: offer.answerSdp, + answeredAt: offer.answeredAt, + topics: [] // V2 doesn't use topics, but client expects this field })) }, 200); } catch (err) {