fix missing await in body

This commit is contained in:
2025-06-26 22:21:48 +02:00
parent a77f0f434e
commit 57ac9c068a

View File

@@ -12,7 +12,7 @@ export async function POST(event: RequestEvent): Promise<Response> {
params: {
header: { 'X-User-ID': event.locals.session.userId }
},
body: event.request.json() as {
body: (await event.request.json()) as {
id1?: number;
id2?: number;
type?: 'child' | 'parent' | 'spouse' | 'sibling';