Fix sw error

This commit is contained in:
Mr Swift
2024-08-19 13:39:23 +03:30
parent d5f5c266d9
commit ac5c86b8b5
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -952,7 +952,7 @@ module.exports.confirmMobile = [
/// //////////////////////////////////////////////////////////////////// user managemnet by admin
module.exports.get_all_users_for_admin = [
(req, res) => {
(req, res) => {
User.find(
{
scope: ['user'],
@@ -962,7 +962,7 @@ module.exports.get_all_users_for_admin = [
},
(err, data) => {
if (err) return res500(res, err)
return res.json(data)
return res.status(200).json(data)
}
)
}