mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
remove deprecated res.json usage
This commit is contained in:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user