Skip to content

Commit ee40901

Browse files
committed
fix(mu): add optional chaining pull result
1 parent 132534a commit ee40901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

servers/mu/src/domain/lib/pull-result.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ function fetchResultWith ({ logger, fetchResult, fetchHyperBeamResult, fetchHBPr
3030
}
3131

3232
return (ctx) => {
33-
let { HB_PROCESSES } = fetchHBProcesses ? fetchHBProcesses() : {}
33+
const { HB_PROCESSES } = fetchHBProcesses ? fetchHBProcesses() : {}
3434
return of(ctx)
3535
.chain(() => {
3636
if (
37-
HB_PROCESSES[ctx.tx?.processId] &&
38-
ctx.schedulerType !== 'hyperbeam' &&
39-
fetchHyperBeamResultAsync
37+
HB_PROCESSES?.[ctx.tx?.processId] &&
38+
ctx.schedulerType !== 'hyperbeam' &&
39+
fetchHyperBeamResultAsync
4040
) {
4141
const messageId = ctx.tx?.id
4242
return fromPromise(getAssignmentNum)({ suUrl: ctx.schedLocation?.url, messageId, processId: ctx.tx.processId })

0 commit comments

Comments
 (0)