Skip to content

Commit

Permalink
Provide interrupter for prepare-response service
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Jun 21, 2024
1 parent 2393d22 commit 2303e7e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions workers/loc.api/helpers/prepare-response/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ const _requestToApi = (
getREST,
apiMethodName,
params,
auth
auth,
interrupter
) => {
const rest = getREST(auth)
const rest = getREST(auth, { interrupter })
const bfxApiMethodName = getBfxApiMethodName(apiMethodName)

const fn = rest[bfxApiMethodName].bind(rest)
Expand Down Expand Up @@ -55,7 +56,8 @@ const _getResAndParams = async (
getREST,
apiMethodName,
queryParams,
args.auth
args.auth,
args?.interrupter
)

return {
Expand Down

0 comments on commit 2303e7e

Please sign in to comment.