Skip to content

Commit

Permalink
Merge pull request #36 from Amruth-Vamshi/akai
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam authored Jan 12, 2024
2 parents cbdffd3 + 86fc959 commit b09379a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/socket/socket.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export class SocketGateway

@UseGuards(WsGuard)
@SubscribeMessage('botRequest')
async handleMessage(client: Socket, { content, to, conversationId }: any) {
async handleMessage(client: Socket, req: any) {
console.log("request",req)
if(Array.isArray(req)) req = req[0]
let { content, to, conversationId } = req
console.log('updated request', { content, to, conversationId })
this.logger.log(
`Receiving chatbot request for ${to} with ${JSON.stringify(
client.handshake.headers.userPhone,
Expand Down

0 comments on commit b09379a

Please sign in to comment.