@esfaenza/core 19.2.159 → 19.2.161

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.
@@ -1522,8 +1522,6 @@ class SessionRetriever {
1522
1522
  }
1523
1523
  /** Tenant§Account§User§ModuleId */
1524
1524
  getSessionKey(global) {
1525
- if (this.SessionIdentity)
1526
- return this.SessionIdentity;
1527
1525
  // Se non ho un id mi manca il login, quindi via di qua
1528
1526
  var id = this.bts.getJaceIdentity();
1529
1527
  if (!id) {
@@ -1533,8 +1531,7 @@ class SessionRetriever {
1533
1531
  this.router.navigate(["login"]);
1534
1532
  return "";
1535
1533
  }
1536
- this.SessionIdentity = "" + id.Idtenant + "§" + id.IdAccount + "§" + id.IdUser + "§" + (global ? "GLOBAL" : myconfig?.AppData?.ModuleId);
1537
- return this.SessionIdentity;
1534
+ return `${id.Idtenant}§${id.IdAccount}§${id.IdUser}§${global ? "GLOBAL" : (myconfig?.AppData?.ModuleId) || ""}`;
1538
1535
  }
1539
1536
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SessionRetriever, deps: [{ token: TokenService }, { token: i1$1.Router }, { token: ANONYMOUS_MODE }], target: i0.ɵɵFactoryTarget.Injectable }); }
1540
1537
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SessionRetriever, providedIn: "root" }); }
@@ -1678,7 +1675,7 @@ class ApplicationPreferencesPersistor extends PreferencesPersistor {
1678
1675
  }));
1679
1676
  if (!global)
1680
1677
  return call1;
1681
- let skGlobal = this.session.getSessionKey();
1678
+ let skGlobal = this.session.getSessionKey(global);
1682
1679
  var call2 = this.http.get(this.getSessionUrl(skGlobal), { headers: this.getHeaders() }).pipe(catchError(e => of(null)), map((res) => {
1683
1680
  for (var prop in res) {
1684
1681
  var resProp = null;