Fix wrong input parameter in user update controller

This commit is contained in:
harimkims 2022-03-03 23:59:32 +09:00
parent 59a3b7e037
commit 683f0484f1

View File

@ -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);