updated api

This commit is contained in:
Andris Reinman 2017-05-23 20:13:59 +03:00
parent 3882be5f00
commit 74c7539f1b

2
api.js
View file

@ -1113,7 +1113,7 @@ server.get('/attachment/:attachment', (req, res, next) => {
});
const result = Joi.validate({
attachment: req.params.message
attachment: req.params.attachment
}, schema, {
abortEarly: false,
convert: true,