Skip to content

Commit

Permalink
update functionality admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayamRana808 committed May 19, 2024
1 parent 0d560b6 commit 1452f36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/app/routes/admin/getAdmins.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ module.exports = async (req, res, next) => {
return next(error);
}
res.status(200).send(response);

return next();
};
5 changes: 3 additions & 2 deletions backend/app/routes/admin/updateAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports =async (req, res) => {

res.status(200).json(updatedAdmin);
} catch (err) {
res.status(500).json({err});
}
res.status(500).json(err);
}
res.send('Done');
};

0 comments on commit 1452f36

Please sign in to comment.