Use map.on() over map.once()
map.once() is eager and will serve empty/half-empty objects instead of waiting for the entirety of data to be wired in.
This commit is contained in:
parent
4460de0747
commit
785544c341
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ const onAcceptedRequests = (user, SEA) => {
|
||||||
user
|
user
|
||||||
.get(Key.STORED_REQS)
|
.get(Key.STORED_REQS)
|
||||||
.map()
|
.map()
|
||||||
.once(async (storedReq, id) => {
|
.on(async (storedReq, id) => {
|
||||||
logger.info(
|
logger.info(
|
||||||
`------------------------------------\nPROCID:${procid} (used for debugging memory leaks in jobs)\n---------------------------------------`
|
`------------------------------------\nPROCID:${procid} (used for debugging memory leaks in jobs)\n---------------------------------------`
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue