@byted-apaas/server-sdk-node 1.1.14-beta.1 → 1.1.14-beta.2
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 +1 -1
- package/request/openapi.js +2 -2
package/package.json
CHANGED
package/request/openapi.js
CHANGED
|
@@ -1005,7 +1005,7 @@ class RequestHttp {
|
|
|
1005
1005
|
tasks: [],
|
|
1006
1006
|
comments: [],
|
|
1007
1007
|
};
|
|
1008
|
-
if (
|
|
1008
|
+
if (approvalInstance.tasks && Array.isArray(approvalInstance.tasks)) {
|
|
1009
1009
|
for (let task of approvalInstance.tasks) {
|
|
1010
1010
|
result.tasks.push({
|
|
1011
1011
|
id: task.id,
|
|
@@ -1021,7 +1021,7 @@ class RequestHttp {
|
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
if (
|
|
1024
|
+
if (approvalInstance.comments && Array.isArray(approvalInstance.comments)) {
|
|
1025
1025
|
for (let comment of approvalInstance.comments) {
|
|
1026
1026
|
result.comments.push({
|
|
1027
1027
|
id: comment.id,
|