mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
save settings by username
This commit is contained in:
parent
d089a898b7
commit
3065e77aa6
@ -59,7 +59,7 @@ export const useSettingsStore = defineStore("settings", () => {
|
||||
};
|
||||
try {
|
||||
await (store.user?.id
|
||||
? useInternalApi("users/" + store.user?.id + "/settings/", true, "post", data)
|
||||
? useInternalApi("users/" + store.user?.name + "/settings/", true, "post", data)
|
||||
: useInternalApi("users/anon/settings/", false, "post", data));
|
||||
} catch (e) {
|
||||
settingsLog("cant save settings", e);
|
||||
|
Loading…
Reference in New Issue
Block a user