Barazo default frontend barazo.forum
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(onboarding): send array body matching backend schema (#142)

The backend expects a bare array [{ fieldId, response }] but the
frontend was sending { responses: [...] }, causing Fastify to reject
with a 400 before the handler runs. Send input.responses instead of
the wrapper object.

authored by

Guido X Jansen and committed by
GitHub
927d7eed f91f96e4

+1 -1
+1 -1
src/lib/api/client.ts
··· 853 853 ...options, 854 854 method: 'POST', 855 855 headers: { ...options?.headers, Authorization: `Bearer ${accessToken}` }, 856 - body: input, 856 + body: input.responses, 857 857 }) 858 858 } 859 859