Skip to content

Commit dc416a0

Browse files
authored
Merge pull request #36 from Akachain/develop
Develop
2 parents c15840f + cf68d58 commit dc416a0

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
logs
2+
logs
3+
.npmrc

lib/helper/InvokeService.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,14 @@ class InvokeService {
219219

220220
// now see what each of the event hubs reported
221221
for (let i in resultsPromise) {
222-
if (typeof resultsPromise[i] === 'string') {
223-
committedCount++
222+
let event_hub_result = resultsPromise[i];
223+
let event_hub = event_hubs[i];
224+
logger.debug('Event results for event hub :%s', event_hub.getPeerAddr());
225+
if (typeof event_hub_result === 'string') {
226+
logger.debug(event_hub_result);
227+
} else {
228+
if (!error_message) error_message = event_hub_result.toString();
229+
logger.debug(event_hub_result.toString());
224230
}
225231
}
226232
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@akachain/akc-node-sdk",
33
"author": "hoangnh, hongsongp97, longnh, hainq, huanlv",
4-
"version": "v2.1.9-a",
4+
"version": "v2.2.1",
55
"description": "AKC node.js SDK for Decentralized Application to connect to Fabric Peers",
66
"main": "index.js",
77
"scripts": {},

0 commit comments

Comments
 (0)