account-lookup-service 17.4.1-csi-1300.4 → 17.4.1-csi-1300.6
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/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4
4
|
|
5
|
+
### [17.3.2](https://github.com/mojaloop/account-lookup-service/compare/v17.3.1...v17.3.2) (2025-03-13)
|
6
|
+
|
7
|
+
|
8
|
+
### Chore
|
9
|
+
|
10
|
+
* bump up ([#536](https://github.com/mojaloop/account-lookup-service/issues/536)) ([dc04445](https://github.com/mojaloop/account-lookup-service/commit/dc044459e512906bcc582fbcbe30b592c0de78cb))
|
11
|
+
|
5
12
|
### [17.3.1](https://github.com/mojaloop/account-lookup-service/compare/v17.3.0...v17.3.1) (2025-03-07)
|
6
13
|
|
7
14
|
|
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.4.1-csi-1300.
|
4
|
+
"version": "17.4.1-csi-1300.6",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"author": "ModusBox",
|
7
7
|
"contributors": [
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"@mojaloop/central-services-health": "15.0.4",
|
96
96
|
"@mojaloop/central-services-logger": "11.6.2",
|
97
97
|
"@mojaloop/central-services-metrics": "12.4.5",
|
98
|
-
"@mojaloop/central-services-shared": "18.22.4
|
98
|
+
"@mojaloop/central-services-shared": "18.22.4",
|
99
99
|
"@mojaloop/central-services-stream": "11.5.1",
|
100
100
|
"@mojaloop/database-lib": "11.1.4",
|
101
101
|
"@mojaloop/event-sdk": "14.3.2",
|
@@ -75,7 +75,7 @@ class GetPartiesService extends BasePartiesService {
|
|
75
75
|
|
76
76
|
async validateRequester ({ source, proxy }) {
|
77
77
|
this.deps.stepState.inProgress('validateRequester-0')
|
78
|
-
const log = this.log.child({ source, method: 'validateRequester' })
|
78
|
+
const log = this.log.child({ source, proxy, method: 'validateRequester' })
|
79
79
|
|
80
80
|
const sourceParticipant = await this.validateParticipant(source)
|
81
81
|
if (sourceParticipant) {
|
@@ -92,12 +92,17 @@ class GetPartiesService extends BasePartiesService {
|
|
92
92
|
const proxyParticipant = await this.validateParticipant(proxy)
|
93
93
|
if (!proxyParticipant) {
|
94
94
|
const errMessage = ERROR_MESSAGES.partyProxyNotFound
|
95
|
-
log.warn(errMessage
|
95
|
+
log.warn(errMessage)
|
96
96
|
throw ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.ID_NOT_FOUND, errMessage)
|
97
97
|
}
|
98
98
|
|
99
99
|
const isCached = await this.deps.proxyCache.addDfspIdToProxyMapping(source, proxy)
|
100
|
-
|
100
|
+
if (!isCached) {
|
101
|
+
const errMessage = 'failed to addDfspIdToProxyMapping'
|
102
|
+
log.warn(errMessage)
|
103
|
+
throw ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.ID_NOT_FOUND, errMessage)
|
104
|
+
}
|
105
|
+
|
101
106
|
log.info('source is added to proxyMapping cache:', { proxy, isCached })
|
102
107
|
return proxy
|
103
108
|
}
|
@@ -47,8 +47,13 @@ class PutPartiesService extends BasePartiesService {
|
|
47
47
|
throw ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.ID_NOT_FOUND, errMessage)
|
48
48
|
}
|
49
49
|
const isCached = await this.deps.proxyCache.addDfspIdToProxyMapping(source, proxy)
|
50
|
-
|
51
|
-
|
50
|
+
if (!isCached) {
|
51
|
+
const errMessage = 'failed to addDfspIdToProxyMapping'
|
52
|
+
this.log.warn(errMessage, { source, proxy })
|
53
|
+
throw ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.ID_NOT_FOUND, errMessage)
|
54
|
+
}
|
55
|
+
|
56
|
+
this.log.info('addDfspIdToProxyMapping is done', { source, proxy })
|
52
57
|
}
|
53
58
|
}
|
54
59
|
|