Skip to content

Commit d14505d

Browse files
Merge pull request #248 from gabrielpastori1/fix-chatwoot-find
Fix chatwoot find
2 parents 1e6d434 + fd15ae5 commit d14505d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/whatsapp/controllers/chatwoot.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class ChatwootController {
6464

6565
const urlServer = this.configService.get<HttpServer>('SERVER').URL;
6666

67-
if (Object.keys(result).length === 0) {
67+
if (Object.keys(result || {}).length === 0) {
6868
return {
6969
enabled: false,
7070
url: '',

0 commit comments

Comments
 (0)