fix: use PUT instead of PATCH for language preference update
parent
5bc7527ce7
commit
ee05f6a2cd
|
|
@ -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)
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue