Skip to content

Commit

Permalink
Refactor code to update nickname in client settings endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Jul 15, 2024
1 parent 115c526 commit 63c97ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api/v2/client/settings/nickname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handler = {
});
}
//nickNameを変更
await users.update({ nickName: nickName }, { id: ctx.state.data.userid });
await users.updateOne({ uuid: ctx.state.data.userid }, { nickName: nickName });
return new Response(JSON.stringify({ status: true }), {
headers: { "Content-Type": "application/json" },
status: 200,
Expand Down

0 comments on commit 63c97ef

Please sign in to comment.