diff --git a/src/whatsapp/controllers/chatwoot.controller.ts b/src/whatsapp/controllers/chatwoot.controller.ts index 46b93aee..40ab1bca 100644 --- a/src/whatsapp/controllers/chatwoot.controller.ts +++ b/src/whatsapp/controllers/chatwoot.controller.ts @@ -64,7 +64,7 @@ export class ChatwootController { const urlServer = this.configService.get('SERVER').URL; - if (Object.keys(result).length === 0) { + if (Object.keys(result || {}).length === 0) { return { enabled: false, url: '',