feat: rename PATCH /users/@me 'username' param to 'name' for consistency
This commit is contained in:
parent
e5ec3dcbeb
commit
136edee506
3 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
const changeUsername = async () => {
|
||||
try {
|
||||
const resp = await apiFetchClient<MeUser>("/users/@me", "PATCH", { username });
|
||||
const resp = await apiFetchClient<MeUser>("/users/@me", "PATCH", { name: username });
|
||||
|
||||
data.user = resp;
|
||||
userStore.set(resp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue