feat: remove update in BD userLang
gitea/hedera-web/pipeline/pr-4922-vueMigration Build started...
Details
gitea/hedera-web/pipeline/pr-4922-vueMigration Build started...
Details
This commit is contained in:
parent
8ffe9a6a96
commit
f4fea5e904
|
@ -114,13 +114,7 @@ export const useUserStore = defineStore('user', {
|
||||||
|
|
||||||
async updateUserLang(lang) {
|
async updateUserLang(lang) {
|
||||||
if (!this.user || this.user.lang === lang) return;
|
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.user.lang = lang;
|
||||||
this.updateSiteLocale();
|
this.updateSiteLocale();
|
||||||
notify(t('dataSaved'), 'positive');
|
notify(t('dataSaved'), 'positive');
|
||||||
|
|
Loading…
Reference in New Issue