From e59e7e48060a0d0af1e9913a68fc51bc6ac43be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Wed, 3 Jun 2020 12:26:15 +0200 Subject: [PATCH] Test force json parse MoreInfo --- src/api/routes/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/routes/index.js b/src/api/routes/index.js index b0b7841..07ff53f 100644 --- a/src/api/routes/index.js +++ b/src/api/routes/index.js @@ -171,8 +171,9 @@ router.get('/moreInfo/:title' , (req, res) =>{ let title = req.params.title; api.getMoreInfo(title) - .then(info =>{ - if (info.length > 0) { + .then(data =>{ + if (data.length > 0) { + let info = JSON.parse(JSON.stringify(data)) res.status(200).json({ info });