Skip to content

Commit ef69be2

Browse files
committed
Fix Incorrect Api status codes
Update Incorrect status code based off the api schema
1 parent f327c1e commit ef69be2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/routes/users.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ router
181181
return internalUser.setPassword(res.locals.access, payload);
182182
})
183183
.then((result) => {
184-
res.status(201)
184+
res.status(200)
185185
.send(result);
186186
})
187187
.catch(next);
@@ -212,7 +212,7 @@ router
212212
return internalUser.setPermissions(res.locals.access, payload);
213213
})
214214
.then((result) => {
215-
res.status(201)
215+
res.status(200)
216216
.send(result);
217217
})
218218
.catch(next);
@@ -238,7 +238,7 @@ router
238238
.post((req, res, next) => {
239239
internalUser.loginAs(res.locals.access, {id: parseInt(req.params.user_id, 10)})
240240
.then((result) => {
241-
res.status(201)
241+
res.status(200)
242242
.send(result);
243243
})
244244
.catch(next);

0 commit comments

Comments
 (0)