Skip to content

Commit 223a4fa

Browse files
committed
Fix bug where wrapInit wasn't called on v2 callable functions.
1 parent 32a7ef3 commit 223a4fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/v2/providers/https.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export interface HttpsOptions extends Omit<GlobalOptions, "region" | "enforceApp
5858

5959
/** HTTP functions can override global options and can specify multiple regions to deploy to. */
6060
region?:
61-
| SupportedRegion
62-
| string
63-
| Array<SupportedRegion | string>
64-
| Expression<string>
65-
| ResetValue;
61+
| SupportedRegion
62+
| string
63+
| Array<SupportedRegion | string>
64+
| Expression<string>
65+
| ResetValue;
6666

6767
/** If true, allows CORS on requests to this function.
6868
* If this is a `string` or `RegExp`, allows requests from domains that match the provided value.
@@ -390,7 +390,7 @@ export function onCall<T = any, Return = any | Promise<any>>(
390390
fixedLen
391391
);
392392

393-
func = wrapTraceContext(func);
393+
func = wrapTraceContext(withInit(func));
394394

395395
Object.defineProperty(func, "__trigger", {
396396
get: () => {

0 commit comments

Comments
 (0)