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
- return value !== undefined && value !== null && value !== '';
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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.4.0-dev.16",
3
+ "version": "1.4.0-dev.17",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",