ntk-cms-api 1.2.237 → 1.2.238
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 -4
- package/fesm2015/ntk-cms-api.mjs +2 -4
- package/fesm2015/ntk-cms-api.mjs.map +1 -1
- package/fesm2020/ntk-cms-api.mjs +2 -4
- package/fesm2020/ntk-cms-api.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ntk-cms-api.mjs
CHANGED
|
@@ -1681,7 +1681,7 @@ class ApiCmsServerBase extends ApiServerBase {
|
|
|
1681
1681
|
if (this.getModuleCashService().includes(serviceName)) {
|
|
1682
1682
|
if (this.cachApiResult[serviceNameKay]?.isSuccess && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].getTime()) < this.cashApiSeconds)
|
|
1683
1683
|
return of(this.cachApiResult[serviceNameKay]);
|
|
1684
|
-
|
|
1684
|
+
if (this.cachApiResult[serviceNameKay].isSuccess && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].getTime()) < this.cashApiSeconds)
|
|
1685
1685
|
this.cachApiResult[serviceNameKay] = null;
|
|
1686
1686
|
while (this.cachApiCallDate[serviceNameKay] && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].getTime()) < this.cashApiSeconds) {
|
|
1687
1687
|
if (this.cachApiResult[serviceNameKay]?.isSuccess)
|
|
@@ -2152,10 +2152,8 @@ class CoreEnumService extends ApiServerBase {
|
|
|
2152
2152
|
const serviceName = 'ServiceRecordStatusEnum';
|
|
2153
2153
|
const serviceNameKay = serviceName;
|
|
2154
2154
|
if (this.getModuleCashService().includes(serviceName)) {
|
|
2155
|
-
if (this.cachApiResult[serviceNameKay]?.isSuccess
|
|
2155
|
+
if (this.cachApiResult[serviceNameKay]?.isSuccess)
|
|
2156
2156
|
return of(this.cachApiResult[serviceNameKay]);
|
|
2157
|
-
else
|
|
2158
|
-
this.cachApiResult[serviceNameKay] = null;
|
|
2159
2157
|
while (this.cachApiCallDate[serviceNameKay] && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].getTime()) < this.cashApiSeconds) {
|
|
2160
2158
|
if (this.cachApiResult[serviceNameKay]?.isSuccess)
|
|
2161
2159
|
return of(this.cachApiResult[serviceNameKay]);
|