remove deprecated res.json usage

v1.18.x
barisusakli 10 years ago
parent b63c0df8a2
commit 348d05d3d1

@ -28,11 +28,11 @@ function upload(req, res, filesIterator, next) {
if (!req.user) {
deleteTempFiles(files);
return res.json(403, 'not allowed');
return res.status(403).json('not allowed');
}
if (!Array.isArray(files)) {
return res.json(500, 'invalid files');
return res.status(500).json('invalid files');
}
if (Array.isArray(files[0])) {

Loading…
Cancel
Save