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) {