This commit is contained in:
1 parent
0259aad7fd
commit
9536e99942
2 files changed
+2
-16
No files matched your search
@@ -28,7 +28,7 @@ export const PUT = externalApi({
|
||||
});
|
||||
}
|
||||
|
||||
const user = await db.addUser({
|
||||
await db.addUser({
|
||||
firstname: input.firstname,
|
||||
lastname: input.lastname,
|
||||
birthday: input.birthday,
|
||||
@@ -38,11 +38,6 @@ export const PUT = externalApi({
|
||||
uuid: input.uuid
|
||||
});
|
||||
|
||||
return new Response(JSON.stringify({ id: user.id }), {
|
||||
status: 201,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
return new Response(null, { status: 201 });
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user