From 57fe7d444b8f7fe2e9674094e4ef2e184a106fb2 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 15 Feb 2021 22:34:51 +0100 Subject: [PATCH] Used correct func name for wines from vinmonpolet. --- api/controllers/vinmonopoletController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/vinmonopoletController.js b/api/controllers/vinmonopoletController.js index eac34b1..b68ec51 100644 --- a/api/controllers/vinmonopoletController.js +++ b/api/controllers/vinmonopoletController.js @@ -28,7 +28,7 @@ function wineByEAN(req, res) { function wineById(req, res) { const { id } = req.params; - return vinmonopoletRepository.searchById(id).then(wines => + return vinmonopoletRepository.wineById(id).then(wines => res.json({ wine: wines[0], success: true