ntk-cms-api 20.25.50 → 20.25.51

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.
@@ -1114,8 +1114,10 @@ class ApiServerBase {
1114
1114
  }
1115
1115
  cashApiIsValid(serviceNameKay, cashApiSeconds = 0) {
1116
1116
  if (cashApiSeconds > 0) {
1117
- while (this.cachApiInRunResult[serviceNameKay]?.getTime() >
1118
- new Date().getTime() - 10000) {
1117
+ while (this.cachApiInRunResult[serviceNameKay] &&
1118
+ new Date().getTime() -
1119
+ this.cachApiInRunResult[serviceNameKay]?.getTime() <
1120
+ 1000) {
1119
1121
  /* this.delay(1000).;*/
1120
1122
  }
1121
1123
  if (this.cachApiResult[serviceNameKay]?.isSuccess === true &&