Skip to content

Commit 5583570

Browse files
committed
fix(serverless): wrapEventFunction does not await for async
1 parent 8161005 commit 5583570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/serverless/src/gcpfunction/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function _wrapEventFunction(
2929
flushTimeout: 2000,
3030
...wrapOptions,
3131
};
32-
return (data, context, callback) => {
32+
return async (data, context, callback) => {
3333
const transaction = startTransaction({
3434
name: context.eventType,
3535
op: 'gcp.function.event',

0 commit comments

Comments
 (0)