From 8b0d8d27e38a000b843ca2b5eb6cc0b7726fd391 Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Sat, 5 Feb 2022 13:20:44 +0100 Subject: [PATCH] #1 response code changed Signed-off-by: Benny Samir Hierl --- src/api/routes/wishlist/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/wishlist/create.ts b/src/api/routes/wishlist/create.ts index f945bc0..cc33fe0 100644 --- a/src/api/routes/wishlist/create.ts +++ b/src/api/routes/wishlist/create.ts @@ -49,6 +49,6 @@ export const createList = { handler: async (request: GetBySlugUrlTextRequest, reply: FastifyReply) => { request.log.debug(request.body) const item = await wishlist.create(request.body as Wishlist) - return item + reply.code(201).send(item) }, }