Respond better

This commit is contained in:
2019-08-06 14:20:00 +05:30
parent 31b6310d5f
commit 5b15e80499
3 changed files with 9 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ module.exports.call = async (base,updateObject)=>{
},(err,res,body)=>{
if(err) console.log(err)
if(body.ok) console.log(`Successfully sent: ${body}`)
else console.log(responseObject)
})
}
}