Skip to content

Commit

Permalink
inbound filter for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
KDwevedi committed Dec 5, 2023
1 parent 22a66a7 commit 739c9bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/message/controllers/inbound.message.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class MessageController {

@Post()
async handleIncomingMessageData(@Body() requestData: GSWhatsAppMessage): Promise<any> {
await this.inboundService.handleIncomingGsWhatsappMessage(requestData);
if ("mobile" in requestData){
await this.inboundService.handleIncomingGsWhatsappMessage(requestData);
}
}
}

0 comments on commit 739c9bb

Please sign in to comment.