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.
@@ -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
- else
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 && (new Date().getTime() - this.cachApiCallDate[serviceNameKay].getTime()) < this.cashApiSeconds)
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]);