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