diff --git a/app.js b/app.js index c0c355d..f36fc77 100644 --- a/app.js +++ b/app.js @@ -39,6 +39,8 @@ app.post("/", async (req, res) => { const url = makeUrl(req.body); const response = await axios.get(url); getPreviewFromContent({ ...response, url }).then(async (data) => { + console.log("data ---", data); + let newData = data; const imagesource = data?.images[0] || null; if (imagesource) { @@ -61,6 +63,7 @@ app.post("/", async (req, res) => { const videoId = youtube_parser(url); newData = { ...newData, videoId }; } + console.log("newData ---", newData); return res.status(200).json(newData); }); } catch (error) {