integrateme-co / integrate-io

Cross-Post your blogs between dev.to, Medium and Hashnode 🔀
MIT License
51 stars 15 forks source link

No Proper Response in Medium Corss Posting API #11

Closed uzaxirr closed 3 years ago

uzaxirr commented 3 years ago

http://localhost:8080/api/v2/medium Does Not return a proper response even though the article is cross-posted on the other two platforms.

This arises due to poor error handling in controller/postFromMedium.controller.js file
Mainly in the code snippet below

    if(hashPost || mediumPost){
        return res.status(201).json({"Message": "Blog Sucessfully Posted"});
    }

Here i think hashPost is not globally defined