diff --git a/backend/app.js b/backend/app.js index fe09ac7..e2f44a2 100644 --- a/backend/app.js +++ b/backend/app.js @@ -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}); diff --git a/src/app/posts.services.ts b/src/app/posts.services.ts index 066a322..15b557c 100644 --- a/src/app/posts.services.ts +++ b/src/app/posts.services.ts @@ -443,7 +443,7 @@ export class PostsService implements CanActivate { } changeUser(change_obj) { - return this.http.post(this.path + 'changeUser', {change_object: change_obj}, this.httpOptions); + return this.http.post(this.path + 'updateUser', {change_object: change_obj}, this.httpOptions); } deleteUser(uid) {