account-lookup-service 17.8.0-snapshot.100 → 17.8.0-snapshot.102
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,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "account-lookup-service",
|
3
3
|
"description": "Account Lookup Service is used to validate Party and Participant lookups.",
|
4
|
-
"version": "17.8.0-snapshot.
|
4
|
+
"version": "17.8.0-snapshot.102",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"author": "ModusBox",
|
7
7
|
"contributors": [
|
@@ -75,17 +75,19 @@ class PutPartiesErrorService extends BasePartiesService {
|
|
75
75
|
async identifyDestinationForErrorCallback () {
|
76
76
|
this.stepInProgress('identifyDestinationForErrorCallback')
|
77
77
|
const { destination } = this.state
|
78
|
-
const schemeParticipant = await super.validateParticipant(destination)
|
79
|
-
if (schemeParticipant) {
|
80
|
-
this.state.requester = destination
|
81
|
-
return
|
82
|
-
}
|
83
78
|
|
84
79
|
this.stepInProgress('lookupProxyDestination-4')
|
85
80
|
const proxyName = this.state.proxyEnabled && await this.deps.proxyCache.lookupProxyByDfspId(destination)
|
81
|
+
|
86
82
|
if (proxyName) {
|
87
83
|
this.state.requester = proxyName
|
88
84
|
return
|
85
|
+
} else {
|
86
|
+
const schemeParticipant = await super.validateParticipant(destination)
|
87
|
+
if (schemeParticipant) {
|
88
|
+
this.state.requester = destination
|
89
|
+
return
|
90
|
+
}
|
89
91
|
}
|
90
92
|
|
91
93
|
const errMessage = ERROR_MESSAGES.partyDestinationFspNotFound
|
@@ -88,14 +88,14 @@ class PutPartiesService extends BasePartiesService {
|
|
88
88
|
async identifyDestinationForSuccessCallback () {
|
89
89
|
const { destination } = this.state
|
90
90
|
this.stepInProgress('identifyDestinationForSuccessCallback')
|
91
|
-
const destinationParticipant = await super.validateParticipant(destination)
|
92
|
-
if (destinationParticipant) {
|
93
|
-
this.state.requester = destinationParticipant.name
|
94
|
-
return
|
95
|
-
}
|
96
91
|
|
97
92
|
const proxyName = this.state.proxyEnabled && await this.deps.proxyCache.lookupProxyByDfspId(destination)
|
98
93
|
if (!proxyName) {
|
94
|
+
const destinationParticipant = await super.validateParticipant(destination)
|
95
|
+
if (destinationParticipant) {
|
96
|
+
this.state.requester = destinationParticipant.name
|
97
|
+
return
|
98
|
+
}
|
99
99
|
const errMessage = ERROR_MESSAGES.partyDestinationFspNotFound
|
100
100
|
this.log.warn(`${errMessage} and no proxy`, { destination })
|
101
101
|
throw ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.DESTINATION_FSP_ERROR, errMessage)
|