diff --git a/ogWebconsole/src/app/layout/header/header.component.ts b/ogWebconsole/src/app/layout/header/header.component.ts index 7c19339..6f82ed0 100644 --- a/ogWebconsole/src/app/layout/header/header.component.ts +++ b/ogWebconsole/src/app/layout/header/header.component.ts @@ -79,10 +79,9 @@ export class HeaderComponent implements OnInit { // Persistir en servidor si el usuario está autenticado const uuid = this.auth.uuid; if (uuid) { - this.http.patch( + this.http.put( `${this.config.apiUrl}/users/${uuid}`, - { language: lang }, - { headers: { 'Content-Type': 'application/merge-patch+json' } } + { language: lang } ).subscribe({ error: (err) => console.error('Error saving language preference:', err) });