mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-10 10:53:24 +00:00
Fix answer response field names for V2 API compatibility
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -535,9 +535,10 @@ export function createApp(storage: Storage, config: Config) {
|
|||||||
return c.json({
|
return c.json({
|
||||||
answers: offers.map(offer => ({
|
answers: offers.map(offer => ({
|
||||||
offerId: offer.id,
|
offerId: offer.id,
|
||||||
answererPeerId: offer.answererPeerId,
|
answererId: offer.answererPeerId,
|
||||||
answerSdp: offer.answerSdp,
|
sdp: offer.answerSdp,
|
||||||
answeredAt: offer.answeredAt
|
answeredAt: offer.answeredAt,
|
||||||
|
topics: [] // V2 doesn't use topics, but client expects this field
|
||||||
}))
|
}))
|
||||||
}, 200);
|
}, 200);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user