Skip to content

Commit

Permalink
fix: Added session in qrCode webhook (close #1405)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Aug 27, 2023
1 parent 80c84e2 commit ee0ad37
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/util/createSessionUtil.ts
Expand Up @@ -164,11 +164,18 @@ export default class CreateSessionUtil {
session: client.session,
});

callWebHook(client, req, 'qrcode', { qrcode: qrCode, urlcode: urlCode });
callWebHook(client, req, 'qrcode', {
qrcode: qrCode,
urlcode: urlCode,
session: client.session,
});
if (res && !res._headerSent)
res
.status(200)
.json({ status: 'qrcode', qrcode: qrCode, urlcode: urlCode });
res.status(200).json({
status: 'qrcode',
qrcode: qrCode,
urlcode: urlCode,
session: client.session,
});
}

async onParticipantsChanged(req: any, client: any) {
Expand Down

0 comments on commit ee0ad37

Please sign in to comment.