0
1
Fork 0

feat: remove update in BD userLang

This commit is contained in:
Javier Segarra 2024-09-17 09:50:25 +02:00
parent 8ffe9a6a96
commit f4fea5e904
1 changed files with 1 additions and 7 deletions

View File

@ -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');