|
|
@@ -104,12 +104,12 @@ class MultiAdapter extends Adapter
|
104
|
104
|
user.room = chat_id
|
105
|
105
|
user.msg_type = req.body.user.msg_type
|
106
|
106
|
@receive new TextMessage user, text
|
107
|
|
- res.send({"message" : "received"})
|
|
107
|
+ res.status(400).send({"message" : "received"})
|
108
|
108
|
} else {
|
109
|
|
- res.send({"message" : "The user object has mising properties. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"})
|
|
109
|
+ res.status(400).send({"message" : "The user object has mising properties. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"})
|
110
|
110
|
}
|
111
|
111
|
} else {
|
112
|
|
- res.send({"message" : "Please check the body of your request. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"})
|
|
112
|
+ res.status(200).send({"message" : "Please check the body of your request. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"})
|
113
|
113
|
}
|
114
|
114
|
|
115
|
115
|
res.end()
|