Skip to content

Commit

Permalink
Fix bug where wrapInit wasn't called on v2 callable functions. (#1634)
Browse files Browse the repository at this point in the history
* Fix bug where wrapInit wasn't called on v2 callable functions.

* Add changelog.

* Fix formatting issue.

* Fix formatting.
  • Loading branch information
taeold authored Nov 7, 2024
1 parent c5936c5 commit cd88163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Fix bug where wrapInit wasn't called on v2 callable functions. (#1634)
- Add support for callable function to return streaming response (#1629)
2 changes: 1 addition & 1 deletion src/v2/providers/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export function onCall<T = any, Return = any | Promise<any>>(
"gcfv2"
);

func = wrapTraceContext(func);
func = wrapTraceContext(withInit(func));

Object.defineProperty(func, "__trigger", {
get: () => {
Expand Down

0 comments on commit cd88163

Please sign in to comment.