Skip to content

Commit

Permalink
fix: Losing this context on register handler function for hapi
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheprer committed Nov 19, 2024
1 parent d0fb135 commit db51368
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class HapiInstrumentation extends InstrumentationBase {
pluginName
);
});
return oldHandler(server, options);
return oldHandler.apply(this, [server, options]);
};
plugin.register = newRegisterHandler;
}
Expand Down

0 comments on commit db51368

Please sign in to comment.