@ikonintegration/ikapi 3.1.35 → 3.1.37
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
|
@@ -59,7 +59,11 @@ 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 (
|
|
62
|
+
} else if (this._syncReturn && this._resp) { //sync return can return other than ikresponse
|
|
63
|
+
this.logger.log("Sync return with different response object:");
|
|
64
|
+
this.logger.debug(this._resp);
|
|
65
|
+
executionFailed = false;
|
|
66
|
+
} else {
|
|
63
67
|
this._resp = this._getErrorResponse(IKGlobals.ErrorResponseInvalidServerResponse, IKGlobals.ErrorCode_APIError)
|
|
64
68
|
await this._resp.build(this._context, this, this._syncReturn);
|
|
65
69
|
this.logger.error("Invalid response object from main request code.");
|