ntk-cms-api 1.2.232 → 1.2.234

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.
@@ -1266,7 +1266,7 @@ class ApiServerBase {
1266
1266
  this.accessLoad = false;
1267
1267
  this.cachApiResult = [];
1268
1268
  this.cachApiCallDate = [];
1269
- this.cashApiSeconds = 20;
1269
+ this.cashApiSeconds = 10;
1270
1270
  this.childConstructor();
1271
1271
  this.headers = new Map();
1272
1272
  }
@@ -1676,13 +1676,13 @@ class ApiCmsServerBase extends ApiServerBase {
1676
1676
  }
1677
1677
  ServiceGetOneById(id) {
1678
1678
  //! optimaze call api
1679
- const serviceName = 'ServiceRecordStatusEnum';
1679
+ const serviceName = 'ServiceGetOneById';
1680
1680
  const serviceNameKay = serviceName + '_' + id;
1681
1681
  if (this.getModuleCashService().includes(serviceName)) {
1682
1682
  do {
1683
1683
  if (this.cachApiResult[serviceNameKay]?.isSuccess)
1684
1684
  return of(this.cachApiResult[serviceNameKay]);
1685
- } while (this.cachApiCallDate[serviceNameKay] && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].getTime()) > this.cashApiSeconds);
1685
+ } while (this.cachApiCallDate[serviceNameKay] && (this.cachApiCallDate[serviceNameKay].getTime() - new Date().getTime()) > this.cashApiSeconds);
1686
1686
  this.cachApiCallDate[serviceNameKay] = new Date();
1687
1687
  }
1688
1688
  //! optimaze call api
@@ -2146,7 +2146,7 @@ class CoreEnumService extends ApiServerBase {
2146
2146
  do {
2147
2147
  if (this.cachApiResult[serviceName]?.isSuccess)
2148
2148
  return of(this.cachApiResult[serviceName]);
2149
- } while (this.cachApiCallDate[serviceName] && (new Date().getTime() - this.cachApiCallDate[serviceName].getTime()) > this.cashApiSeconds);
2149
+ } while (this.cachApiCallDate[serviceName] && (this.cachApiCallDate[serviceName].getTime() - new Date().getTime()) > this.cashApiSeconds);
2150
2150
  this.cachApiCallDate[serviceName] = new Date();
2151
2151
  //! optimaze call api
2152
2152
  return this.http