emilsoftware-utilities 1.3.45 → 1.3.47

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.
@@ -270,11 +270,11 @@ var AccessiModel = function () {
270
270
  switch (_a.label) {
271
271
  case 0:
272
272
  _a.trys.push([0, 3, , 4]);
273
- queryUtenti = " INSERT INTO UTENTI (USRNAME, STAREG, KEYREG, FLGGDPR) VALUES (?,?,?,?) RETURNING CODUTE as codice_utente";
273
+ queryUtenti = " INSERT INTO UTENTI (USRNAME, STAREG, KEYREG, FLGGDPR) VALUES (?,?,?,?) RETURNING CODUTE ";
274
274
  paramsUtenti = [request.username, request.statoRegistrazione, request.keyRegistrazione, false];
275
275
  return [4 /*yield*/, Orm_1.Orm.query(this.accessiOptions.databaseOptions, queryUtenti, paramsUtenti)];
276
276
  case 1:
277
- codiceUtente = (_a.sent()).CODICE_UTENTE;
277
+ codiceUtente = (_a.sent()).CODUTE;
278
278
  console.log("CODICE UTENTEXX: ", codiceUtente);
279
279
  queryUtentiConfig = " INSERT INTO UTENTI_CONFIG (CODUTE,COGNOME,NOME,CODLINGUA,FLGSUPER) VALUES (?,?,?,?,?) ";
280
280
  paramsUtentiConfig = [codiceUtente, request.cognome, request.nome, request.codiceLingua, request.flagSuper];
@@ -340,7 +340,7 @@ var AccessiModel = function () {
340
340
  switch (_a.label) {
341
341
  case 0:
342
342
  _a.trys.push([0, 2, , 3]);
343
- query = " \n SELECT \n U.CODUTE as codice_utente, \n U.USRNAME as username, \n U.FLGGDPR as flag_gdpr, \n U.DATGDPR as data_gdpr, \n U.DATINS as data_inserimento, \n U.DATSCAPWD as data_scadenza_password, \n U.DATLASTLOGIN as data_last_login, \n U.STAREG as stato_registrazione, \n G.COGNOME as cognome, \n G.NOME as nome, \n G.AVATAR as avatar, \n G.FLG2FATT as flag_due_fattori, \n G.CODLINGUA as codice_lingua,\n G.CELLULARE as cellulare,\n G.FLGSUPER as flag_super, \n G.PAGDEF as pagina_default,\n G.JSON_METADATA as json_metadata,\n F.NUMREP as numero_reparto, \n F.IDXPERS as idx_personale, \n F.CODCLISUPER as codice_cliente_super, \n F.CODAGE as codice_agente, \n F.CODCLICOL as codice_cliente_collegato, \n F.CODCLIENTI as codice_clienti, \n F.TIPFIL as tipo_filtro\n \n FROM UTENTI U, UTENTI_CONFIG G, FILTRI F \n WHERE U.CODUTE = G.CODUTE AND F.CODUTE = U.CODUTE \n ORDER BY U.CODUTE\n ";
343
+ query = " \n SELECT \n U.CODUTE as codice_utente, \n U.USRNAME as username, \n U.FLGGDPR as flag_gdpr, \n U.DATGDPR as data_gdpr, \n U.DATINS as data_inserimento, \n U.DATSCAPWD as data_scadenza_password, \n U.DATLASTLOGIN as data_last_login, \n U.STAREG as stato_registrazione, \n G.COGNOME as cognome, \n G.NOME as nome, \n G.AVATAR as avatar, \n G.FLG2FATT as flag_due_fattori, \n G.CODLINGUA as codice_lingua,\n G.CELLULARE as cellulare,\n G.FLGSUPER as flag_super, \n G.PAGDEF as pagina_default,\n G.JSON_METADATA as json_metadata\n \n FROM UTENTI U INNER JOIN UTENTI_CONFIG G ON U.CODUTE = G.CODUTE \n ORDER BY U.CODUTE\n ";
344
344
  params = [];
345
345
  return [4 /*yield*/, Orm_1.Orm.query(this.accessiOptions.databaseOptions, query, params)];
346
346
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.3.45",
3
+ "version": "1.3.47",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",