Changed /api/changeUser endpoint to /api/updateUser

This commit is contained in:
Tzahi12345
2020-05-05 19:31:47 -04:00
parent a1c9c97616
commit f094d18e03
2 changed files with 2 additions and 2 deletions

View File

@@ -2828,7 +2828,7 @@ app.post('/api/getRoles', optionalJwt, async (req, res) => {
res.send({roles: roles});
});
app.post('/api/changeUser', optionalJwt, async (req, res) => {
app.post('/api/updateUser', optionalJwt, async (req, res) => {
let change_obj = req.body.change_object;
try {
const user_db_obj = users_db.get('users').find({uid: change_obj.uid});