mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 08:04:51 +00:00
Fix wrong input parameter in user update controller
This commit is contained in:
parent
59a3b7e037
commit
683f0484f1
@ -90,7 +90,7 @@ module.exports = {
|
||||
const { id } = ctx.params;
|
||||
const { email, username, password } = ctx.request.body;
|
||||
|
||||
const user = await getService('user').fetch({ id });
|
||||
const user = await getService('user').fetch(id);
|
||||
|
||||
await validateUpdateUserBody(ctx.request.body);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user