From b49de74a4be0c0752967e261795c184e25c11fdd Mon Sep 17 00:00:00 2001 From: Alessandre Laguierce Date: Wed, 4 Dec 2024 14:02:48 +0100 Subject: [PATCH] fix: fix previous fix --- back-end/src/controllers/box.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back-end/src/controllers/box.controller.ts b/back-end/src/controllers/box.controller.ts index ab75e5a..922f176 100644 --- a/back-end/src/controllers/box.controller.ts +++ b/back-end/src/controllers/box.controller.ts @@ -38,7 +38,7 @@ const allBoxesFromDate: RequestHandler<{ date: string; }> = async (req, res) => res.render('boxes.ejs', { boxes }); }; -const boxAddPieces: RequestHandler<{ title: string; }> = async (req, res) => { +const boxAddPieces: RequestHandler<{ title: string|number; }> = async (req, res) => { const boxEither: Either = await boxService.getBox(req.params.title); if (boxEither.hasRight) {