Used correct func name for wines from vinmonpolet.

This commit is contained in:
2021-02-15 22:34:51 +01:00
parent cb4a30b5e9
commit 57fe7d444b

View File

@@ -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