forked from verdnatura/hedera-web
feat: remove update in BD userLang
This commit is contained in:
parent
8ffe9a6a96
commit
f4fea5e904
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue