Skip to content

Commit bccda27

Browse files
authored
Merge pull request #1148 from jembi/OHM-1080-fix-transaction-status
Fix openhim transaction status
2 parents 2ae3c03 + 1676b2f commit bccda27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/middleware/router.js

+6
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,12 @@ const buildNonPrimarySendRequestPromise = (ctx, route, options, path) =>
404404
// on failure
405405
const routeObj = {}
406406
routeObj.name = route.name
407+
408+
if (!ctx.routes) {
409+
ctx.routes = []
410+
}
411+
ctx.routes.push(routeObj)
412+
407413
handleServerError(ctx, reason, routeObj)
408414
return routeObj
409415
})

0 commit comments

Comments
 (0)