@@ -98,11 +98,11 @@ export class ChatwootService {
9898 const client = await this . clientCw ( instance ) ;
9999
100100 if ( ! client ) {
101- throw new Error ( 'client not found' ) ;
101+ console . log ( 'client not found' ) ;
102102 }
103103
104104 if ( ! id ) {
105- throw new Error ( 'id is required' ) ;
105+ console . log ( 'id is required' ) ;
106106 }
107107
108108 const contact = await client . contact . getContactable ( {
@@ -126,7 +126,7 @@ export class ChatwootService {
126126 const client = await this . clientCw ( instance ) ;
127127
128128 if ( ! client ) {
129- throw new Error ( 'client not found' ) ;
129+ console . log ( 'client not found' ) ;
130130 }
131131
132132 const findInbox : any = await client . inboxes . list ( {
@@ -208,7 +208,7 @@ export class ChatwootService {
208208 const client = await this . clientCw ( instance ) ;
209209
210210 if ( ! client ) {
211- throw new Error ( 'client not found' ) ;
211+ console . log ( 'client not found' ) ;
212212 }
213213
214214 let data : any = { } ;
@@ -241,11 +241,11 @@ export class ChatwootService {
241241 const client = await this . clientCw ( instance ) ;
242242
243243 if ( ! client ) {
244- throw new Error ( 'client not found' ) ;
244+ console . log ( 'client not found' ) ;
245245 }
246246
247247 if ( ! id ) {
248- throw new Error ( 'id is required' ) ;
248+ console . log ( 'id is required' ) ;
249249 }
250250
251251 const contact = await client . contacts . update ( {
@@ -261,7 +261,7 @@ export class ChatwootService {
261261 const client = await this . clientCw ( instance ) ;
262262
263263 if ( ! client ) {
264- throw new Error ( 'client not found' ) ;
264+ console . log ( 'client not found' ) ;
265265 }
266266
267267 let query : any ;
@@ -289,7 +289,7 @@ export class ChatwootService {
289289 const client = await this . clientCw ( instance ) ;
290290
291291 if ( ! client ) {
292- throw new Error ( 'client not found' ) ;
292+ console . log ( 'client not found' ) ;
293293 }
294294
295295 const isGroup = body . key . remoteJid . includes ( '@g.us' ) ;
@@ -371,7 +371,7 @@ export class ChatwootService {
371371 const client = await this . clientCw ( instance ) ;
372372
373373 if ( ! client ) {
374- throw new Error ( 'client not found' ) ;
374+ console . log ( 'client not found' ) ;
375375 }
376376
377377 const inbox = ( await client . inboxes . list ( {
@@ -610,7 +610,7 @@ export class ChatwootService {
610610
611611 return ;
612612 } catch ( error ) {
613- throw new Error ( error ) ;
613+ console . log ( error ) ;
614614 }
615615 }
616616
@@ -803,7 +803,7 @@ export class ChatwootService {
803803 const client = await this . clientCw ( instance ) ;
804804
805805 if ( ! client ) {
806- throw new Error ( 'client not found' ) ;
806+ console . log ( 'client not found' ) ;
807807 }
808808
809809 const waInstance = this . waMonitor . waInstances [ instance . instanceName ] ;
0 commit comments