From ee05f6a2cd97ca89984a5323dbc89b6fccdcef38 Mon Sep 17 00:00:00 2001 From: jmbardallo Date: Wed, 8 Jul 2026 14:13:31 +0200 Subject: [PATCH] fix: use PUT instead of PATCH for language preference update --- ogWebconsole/src/app/layout/header/header.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) });