mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user