Skip to content

Commit 7f4c957

Browse files
authoredMar 31, 2020
Enable users to define async HTTP functions (#651)
Fixes #606
1 parent e1df823 commit 7f4c957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/https.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function _onRequestWithOptions(
6060
): HttpsFunction {
6161
// lets us add __trigger without altering handler:
6262
const cloudFunction: any = (req: Request, res: express.Response) => {
63-
handler(req, res);
63+
return handler(req, res);
6464
};
6565
cloudFunction.__trigger = _.assign(optionsToTrigger(options), {
6666
httpsTrigger: {},

0 commit comments

Comments
 (0)
Please sign in to comment.