Skip to content

Commit dd6fab3

Browse files
authored
Merge pull request #1797 from MegaManSec/j6
fix: await mapped error response promise
2 parents 8f545a9 + 22416bd commit dd6fab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ export const composeHandler = ({
20932093
fnLiteral +=
20942094
`c.response=c.responseValue=er\n` +
20952095
`mep=e.mapResponse[${i}](c)\n` +
2096-
`if(mep instanceof Promise)er=await er\n` +
2096+
`if(mep instanceof Promise)mep=await mep\n` +
20972097
`if(mep!==undefined)er=mep\n`
20982098

20992099
endUnit()

0 commit comments

Comments
 (0)