Skip to content

Commit

Permalink
feat/middleware - Expose the receiverNumber during the onCall callbac…
Browse files Browse the repository at this point in the history
…k middleware (#1119)

In certain cases you want to know the receiving number configured for the callback, this exposes the "receiverNumber" so it would be accessible within the callback as `ctx.receiverNumber`
  • Loading branch information
tofudeadeye committed Jan 19, 2024
1 parent 678dc2d commit 3d0e4d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/game/server/calls/calls.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ onNetPromise<InitializeCallDTO, ActiveCall>(CallEvents.INITIALIZE_CALL, async (r
try {
await new Promise<void>((resolve, reject) => {
funcRef({
receiverNumber: reqObj.data.receiverNumber,
incomingCaller,
next: () => {
resolve();
Expand Down

0 comments on commit 3d0e4d9

Please sign in to comment.