account-lookup-service 17.14.5-cache.2 → 17.14.5
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 +12 -0
- package/package.json +1 -1
- package/src/api/participants/{Type}/{ID}/{SubId}.js +1 -1
- package/src/lib/cache.js +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.14.5](https://github.com/mojaloop/account-lookup-service/compare/v17.14.4...v17.14.5) (2025-12-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* use catbox policy.get for proper concurrency handling ([#589](https://github.com/mojaloop/account-lookup-service/issues/589)) ([c4dd65e](https://github.com/mojaloop/account-lookup-service/commit/c4dd65e4ef9c1cdf764a7f3f6dce4bfed6bcd199))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Chore
|
|
14
|
+
|
|
15
|
+
* **sbom:** update sbom [skip ci] ([677daee](https://github.com/mojaloop/account-lookup-service/commit/677daeed2b40fdbced6bbe3654418000379f4969))
|
|
16
|
+
|
|
5
17
|
### [17.14.4](https://github.com/mojaloop/account-lookup-service/compare/v17.14.3...v17.14.4) (2025-10-31)
|
|
6
18
|
|
|
7
19
|
|
package/package.json
CHANGED
|
@@ -156,7 +156,7 @@ module.exports = {
|
|
|
156
156
|
payload
|
|
157
157
|
}, EventSdk.AuditEventAction.start)
|
|
158
158
|
|
|
159
|
-
participants.postParticipants(request.headers, request.method, request.params, request.payload, request.span
|
|
159
|
+
participants.postParticipants(request.headers, request.method, request.params, request.payload, request.span).catch(err => {
|
|
160
160
|
request.server.log(['error'], `ERROR - postParticipants: ${LibUtil.getStackOrInspect(err)}`)
|
|
161
161
|
})
|
|
162
162
|
histTimerEnd({ success: true })
|
package/src/lib/cache.js
CHANGED
|
@@ -41,16 +41,11 @@ class CacheClient {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
async initCache (catboxMemoryClient) {
|
|
44
|
-
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
catboxMemoryClient,
|
|
51
|
-
this.segment
|
|
52
|
-
)
|
|
53
|
-
}
|
|
44
|
+
this.policy = new Catbox.Policy({
|
|
45
|
+
generateFunc: this.generateFunc,
|
|
46
|
+
expiresIn,
|
|
47
|
+
generateTimeout: false
|
|
48
|
+
}, catboxMemoryClient, this.segment)
|
|
54
49
|
return await this.preloadCache?.()
|
|
55
50
|
}
|
|
56
51
|
|
|
@@ -89,7 +84,7 @@ const initCache = async function () {
|
|
|
89
84
|
}
|
|
90
85
|
|
|
91
86
|
const destroyCache = async function () {
|
|
92
|
-
catboxMemoryClient?.stop()
|
|
87
|
+
await catboxMemoryClient?.stop()
|
|
93
88
|
}
|
|
94
89
|
|
|
95
90
|
const dropClients = function () {
|