emilsoftware-utilities 1.3.42 → 1.3.44

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 (?,?,?,?) ";
274
- paramsUtenti = [request.username, request.statoRegistrazione, request.keyRegistrazione, '0'];
275
- return [4 /*yield*/, Orm_1.Orm.execute(this.accessiOptions.databaseOptions, queryUtenti, paramsUtenti)];
273
+ queryUtenti = " INSERT INTO UTENTI (USRNAME, STAREG, KEYREG, FLGGDPR) VALUES (?,?,?,?) RETURNING CODUTE as codice_utente";
274
+ paramsUtenti = [request.username, request.statoRegistrazione, request.keyRegistrazione, false];
275
+ return [4 /*yield*/, Orm_1.Orm.query(this.accessiOptions.databaseOptions, queryUtenti, paramsUtenti)];
276
276
  case 1:
277
- codiceUtente = _a.sent();
277
+ codiceUtente = (_a.sent()).CODICE_UTENTE;
278
278
  console.log("CODICE UTENTE: ", 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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.3.42",
3
+ "version": "1.3.44",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",