File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/message/services/inbound Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export class GupshupWhatsappInboundService {
69
69
70
70
async handleIncomingGsWhatsappMessage ( whatsappMessage : GSWhatsAppMessage ) {
71
71
const adapterCredentials = await this . getAdapterCredentials ( whatsappMessage . waNumber ) ;
72
+ this . logger . log ( "Obtained Creds" )
72
73
try {
73
74
//Handle Feedback First
74
75
if ( 'interactive' in whatsappMessage ) {
@@ -80,8 +81,6 @@ export class GupshupWhatsappInboundService {
80
81
}
81
82
}
82
83
83
- console . log ( "User" , this . userService . getUserByUsername ( '9550360277' ) )
84
-
85
84
const xMessagePayload : XMessage = await convertMessageToXMsg ( whatsappMessage ) ;
86
85
if ( xMessagePayload . messageType != MessageType . TEXT ) {
87
86
throw new Error ( "Media Type Not Supported" ) ;
@@ -103,7 +102,7 @@ export class GupshupWhatsappInboundService {
103
102
'Content-Type' : 'application/json'
104
103
}
105
104
} ) ;
106
- this . logger . log ( 'OrchestratorResponse' , resp )
105
+ this . logger . log ( 'OrchestratorResponse' , resp . data )
107
106
const xResponse = this . convertApiResponseToXMessage ( resp . data , whatsappMessage . mobile . substring ( 2 ) ) ;
108
107
this . logger . log ( "OrchestratorResponse" , xResponse )
109
108
const sentResp = await this . outboundService . handleOrchestratorResponse ( xResponse , adapterCredentials ) ;
You can’t perform that action at this time.
0 commit comments