We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8161005 commit ab3e6e4Copy full SHA for ab3e6e4
packages/serverless/src/gcpfunction/events.ts
@@ -29,7 +29,7 @@ function _wrapEventFunction(
29
flushTimeout: 2000,
30
...wrapOptions,
31
};
32
- return (data, context, callback) => {
+ return async (data, context, callback) => {
33
const transaction = startTransaction({
34
name: context.eventType,
35
op: 'gcp.function.event',
@@ -67,7 +67,7 @@ function _wrapEventFunction(
67
return (fn as EventFunctionWithCallback)(data, context, newCallback);
68
}
69
70
- void Promise.resolve()
+ await Promise.resolve()
71
.then(() => (fn as EventFunction)(data, context))
72
.then(
73
result => {
0 commit comments