mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-11 21:39:06 +02:00
fix missing await in body
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user