fix: fix previous fix

This commit is contained in:
Alessandre Laguierce 2024-12-04 14:02:48 +01:00
parent b50c28023a
commit b49de74a4b

View File

@ -38,7 +38,7 @@ const allBoxesFromDate: RequestHandler<{ date: string; }> = async (req, res) =>
res.render('boxes.ejs', { boxes }); 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<Box, string> = await boxService.getBox(req.params.title); const boxEither: Either<Box, string> = await boxService.getBox(req.params.title);
if (boxEither.hasRight) { if (boxEither.hasRight) {