Closed uzaxirr closed 3 years ago
In controller/postFromMedium.controller.js the article object is coming as the 0th element of an array article
controller/postFromMedium.controller.js
article
if(dev) { Devblog = await postToDev(article[0], dev_api, "medium"); if(!Devblog){ return res.status(400).json({"Error": "Unable to publish to Dev.to From Medium"}); } } if(hash){ hashBlog = await postToHashnode(article[0], hash_api, "medium"); if(!hashBlog){ return res.status(400).json({"Error": "Unable to publish to Hashnode from Medium"}); } }
Here as we can see 0th element of article array is being passed on
Hey! could you assign this task to me?
Yea sure!!! Go Ahead
@uzair-ali10 Please do check PR
In
controller/postFromMedium.controller.js
the article object is coming as the 0th element of an arrayarticle
Here as we can see 0th element of article array is being passed on