mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-14 18:44:17 +02:00
feat(requests): accept response for request
* rewards score transfer * request status check #20
This commit is contained in:
@@ -1047,10 +1047,9 @@ exports.attachDownload = function (req, res) {
|
||||
* Invitation middleware
|
||||
*/
|
||||
exports.topicById = function (req, res, next, id) {
|
||||
|
||||
if (!mongoose.Types.ObjectId.isValid(id)) {
|
||||
return res.status(400).send({
|
||||
message: 'Topic is invalid'
|
||||
message: 'SERVER.INVALID_OBJECTID'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user