Skip to content

Commit f3503eb

Browse files
committed
fir: the QR code was not being returned.
1 parent 0b08466 commit f3503eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/whatsapp/controllers/instance.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export class InstanceController {
136136
switch (state) {
137137
case 'close':
138138
await instance.connectToWhatsapp();
139-
this.eventEmitter.once('qrcode.updated', (data: { code: string }) => {
140-
res.status(HttpStatus.OK).json({ code: data?.code });
139+
this.eventEmitter.once('qrcode.updated', (data: any) => {
140+
res.status(HttpStatus.OK).json(data);
141141
});
142142
break;
143143
case 'connecting':

0 commit comments

Comments
 (0)