Fix merge issues

This commit is contained in:
2019-12-04 00:30:23 -05:00
parent 7a0a5725b7
commit 77a3ba9f69
5 changed files with 19 additions and 108 deletions

View File

@@ -238,7 +238,8 @@ exports.quoteWithoutPost = (req, res) => {
}
})
.catch(err => {
return res.status(500).json({ error: "Something is wrong" });
// return res.status(500).json({ error: "Something is wrong" });
return res.status(500).json({ error: err });
});
};
@@ -259,7 +260,11 @@ exports.checkforLikePost = (req, res) => {
result = true;
return res.status(200).json(result);
}
});
})
.catch((err) => {
console.log(err);
return res.status(500).json({error: err});
})
};
exports.likePost = (req, res) => {
@@ -303,7 +308,8 @@ exports.likePost = (req, res) => {
}
})
.catch(err => {
return res.status(500).json({ error: "Something is wrong" });
// return res.status(500).json({ error: "Something is wrong" });
return res.status(500).json({ error: err });
});
};