emilsoftware-utilities 1.4.0-dev.16 → 1.4.0-dev.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -371,7 +371,8 @@ let UserService = class UserService {
|
|
|
371
371
|
const fieldsToUpdate = Object.entries(fieldMapping)
|
|
372
372
|
.filter(([tsField]) => {
|
|
373
373
|
const value = user[tsField];
|
|
374
|
-
|
|
374
|
+
// Includiamo il campo se è definito (anche se è una stringa vuota)
|
|
375
|
+
return value !== undefined && value !== null;
|
|
375
376
|
})
|
|
376
377
|
.map(([tsField, config]) => {
|
|
377
378
|
const value = user[tsField];
|