We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4372a0 commit df841aeCopy full SHA for df841ae
src/whatsapp/services/monitor.service.ts
@@ -108,10 +108,14 @@ export class WAMonitoringService {
108
}
109
110
const findIntegration = await this.waInstances[key].findIntegration();
111
- const integration = {
112
- ...findIntegration,
113
- webhook_wa_business: `${urlServer}/webhook/whatsapp/${encodeURIComponent(key)}`,
114
- };
+
+ let integration: any;
+ if (findIntegration) {
+ integration = {
115
+ ...findIntegration,
116
+ webhook_wa_business: `${urlServer}/webhook/whatsapp/${encodeURIComponent(key)}`,
117
+ };
118
+ }
119
120
if (value.connectionStatus.state === 'open') {
121
this.logger.verbose('instance: ' + key + ' - connectionStatus: open');
0 commit comments