File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/api/integrations/chatbot/chatwoot/services Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -568,8 +568,7 @@ export class ChatwootService {
568568
569569 public async createConversation ( instance : InstanceDto , body : any ) {
570570 if ( ! body ?. key ) {
571- this . logger . warn ( 'body.key is null or undefined in createConversation' ) ;
572- this . logger . warn ( 'Full body object:' , JSON . stringify ( body , null , 2 ) ) ;
571+ this . logger . warn ( `body.key is null or undefined in createConversation. Full body object: ${ JSON . stringify ( body ) } ` ) ;
573572 return null ;
574573 }
575574
@@ -1945,8 +1944,7 @@ export class ChatwootService {
19451944
19461945 if ( event === 'messages.upsert' || event === 'send.message' ) {
19471946 if ( ! body ?. key ) {
1948- this . logger . warn ( 'body.key is null or undefined' ) ;
1949- this . logger . warn ( 'Full body object:' , JSON . stringify ( body , null , 2 ) ) ;
1947+ this . logger . warn ( `body.key is null or undefined. Full body object: ${ JSON . stringify ( body ) } ` ) ;
19501948 return ;
19511949 }
19521950
@@ -2273,8 +2271,7 @@ export class ChatwootService {
22732271
22742272 if ( event === 'messages.edit' || event === 'send.message.update' ) {
22752273 if ( ! body ?. key ?. id ) {
2276- this . logger . warn ( 'body.key.id is null or undefined in messages.edit' ) ;
2277- this . logger . warn ( 'Full body object:' , JSON . stringify ( body , null , 2 ) ) ;
2274+ this . logger . warn ( `body.key.id is null or undefined in messages.edit. Full body object: ${ JSON . stringify ( body ) } ` ) ;
22782275 return ;
22792276 }
22802277
You can’t perform that action at this time.
0 commit comments