diff --git a/src/stores/user.js b/src/stores/user.js index d905c116..fe662e86 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -114,13 +114,7 @@ export const useUserStore = defineStore('user', { async updateUserLang(lang) { if (!this.user || this.user.lang === lang) return; - await jApi.execQuery( - `START TRANSACTION; - UPDATE account.myUser SET lang = #lang WHERE (id = #id); - SELECT lang FROM account.myUser WHERE (id = #id); - COMMIT;`, - { id: this.user.id, lang } - ); + this.user.lang = lang; this.updateSiteLocale(); notify(t('dataSaved'), 'positive');