@ikonintegration/ikapi 3.1.35 → 3.1.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/ikapi",
3
- "version": "3.1.35",
3
+ "version": "3.1.36",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -59,7 +59,9 @@ export default class IKTransaction {
59
59
  if (this._resp && this._resp instanceof IKResponse) {
60
60
  await this._resp.build(this._context, this, this._syncReturn);
61
61
  executionFailed = !!(this._resp.getBody() && this._resp.getBody().rollback);
62
- } else if (!this._syncReturn) { //sync return can return other than ikresponse
62
+ } else if (this._syncReturn && this._resp) { //sync return can return other than ikresponse
63
+ executionFailed = false;
64
+ } else {
63
65
  this._resp = this._getErrorResponse(IKGlobals.ErrorResponseInvalidServerResponse, IKGlobals.ErrorCode_APIError)
64
66
  await this._resp.build(this._context, this, this._syncReturn);
65
67
  this.logger.error("Invalid response object from main request code.");