emilsoftware-utilities 1.4.0-dev.16 → 1.4.0-dev.18
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.
- package/dist/accessi-module/Dtos/FiltriUtente.d.ts +1 -1
- package/dist/accessi-module/Dtos/FiltriUtente.js +1 -1
- package/dist/accessi-module/Services/UserService/UserService.js +5 -4
- package/dist/emilsoftware-utilities-1.4.0-dev.18.tgz +0 -0
- package/package.json +1 -1
- package/dist/emilsoftware-utilities-1.4.0-dev.16.tgz +0 -0
|
@@ -64,7 +64,7 @@ let UserService = class UserService {
|
|
|
64
64
|
F.CODAGE AS cod_age,
|
|
65
65
|
F.CODCLICOL AS cod_cli_col,
|
|
66
66
|
F.CODCLIENTI AS codice_clienti,
|
|
67
|
-
F.TIPFIL AS
|
|
67
|
+
F.TIPFIL AS tipo_filtro
|
|
68
68
|
FROM UTENTI U
|
|
69
69
|
INNER JOIN UTENTI_CONFIG G ON U.CODUTE = G.CODUTE
|
|
70
70
|
LEFT JOIN FILTRI F ON F.CODUTE = U.CODUTE
|
|
@@ -182,7 +182,7 @@ let UserService = class UserService {
|
|
|
182
182
|
codiceAgenzia: { dbField: 'CODAGE', type: 'number' },
|
|
183
183
|
codiceClienteCollegato: { dbField: 'CODCLICOL', type: 'number' },
|
|
184
184
|
codiceClienti: { dbField: 'CODCLIENTI', type: 'string' },
|
|
185
|
-
tipoFiltro: { dbField: 'TIPFIL', type: '
|
|
185
|
+
tipoFiltro: { dbField: 'TIPFIL', type: 'number' },
|
|
186
186
|
};
|
|
187
187
|
const fieldsToInsert = Object.entries(fieldMapping)
|
|
188
188
|
.filter(([tsField]) => {
|
|
@@ -366,12 +366,13 @@ let UserService = class UserService {
|
|
|
366
366
|
codAge: { dbField: 'CODAGE', type: 'number' },
|
|
367
367
|
codCliCol: { dbField: 'CODCLICOL', type: 'number' },
|
|
368
368
|
codiceClienti: { dbField: 'CODCLIENTI', type: 'string' },
|
|
369
|
-
|
|
369
|
+
tipoFiltro: { dbField: 'TIPFIL', type: 'number' },
|
|
370
370
|
};
|
|
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];
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|