Return the Promise from an expressified async function (#19359)

* Return the Promise from an expressified async function

GitOrigin-RevId: ca4c221a92de888e210e995faad97d0ea241e93f
This commit is contained in:
Alf Eaton
2024-07-15 09:17:32 +01:00
committed by Copybot
parent bcef7ea125
commit 136214f37a
3 changed files with 37 additions and 71 deletions

View File

@@ -234,7 +234,7 @@ function callbackifyMultiResult(fn, resultNames) {
*/
function expressify(fn) {
return (req, res, next) => {
fn(req, res, next).catch(next)
return fn(req, res, next).catch(next)
}
}