ntk-cms-api 1.2.234 → 1.2.235
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/esm2020/lib/service/base/apiCmsServerBase.service.mjs +2 -2
- package/esm2020/lib/service/core-main/coreEnum.service.mjs +2 -2
- package/fesm2015/ntk-cms-api.mjs +2 -2
- package/fesm2015/ntk-cms-api.mjs.map +1 -1
- package/fesm2020/ntk-cms-api.mjs +2 -2
- package/fesm2020/ntk-cms-api.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ntk-cms-api.mjs
CHANGED
|
@@ -1682,7 +1682,7 @@ class ApiCmsServerBase extends ApiServerBase {
|
|
|
1682
1682
|
do {
|
|
1683
1683
|
if (this.cachApiResult[serviceNameKay]?.isSuccess)
|
|
1684
1684
|
return of(this.cachApiResult[serviceNameKay]);
|
|
1685
|
-
} while (this.cachApiCallDate[serviceNameKay] && (
|
|
1685
|
+
} while (this.cachApiCallDate[serviceNameKay] && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].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] && (
|
|
2149
|
+
} while (this.cachApiCallDate[serviceName] && (new Date().getTime() - this.cachApiCallDate[serviceName].getTime()) < this.cashApiSeconds);
|
|
2150
2150
|
this.cachApiCallDate[serviceName] = new Date();
|
|
2151
2151
|
//! optimaze call api
|
|
2152
2152
|
return this.http
|