Skip to content

Commit

Permalink
Merge pull request #85 from w3nder/develop
Browse files Browse the repository at this point in the history
Fix set event rabbitmq/websocket
  • Loading branch information
DavidsonGomes authored Aug 29, 2023
2 parents b4eca48 + 821a422 commit d803a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/whatsapp/controllers/instance.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class InstanceController {
'CHAMA_AI_ACTION',
];
} else {
newEvents = events;
newEvents = websocket_events;
}
this.websocketService.create(instance, {
enabled: true,
Expand Down Expand Up @@ -232,7 +232,7 @@ export class InstanceController {
}
this.rabbitmqService.create(instance, {
enabled: true,
events: newEvents,
events: rabbitmq_events,
});

rabbitmqEvents = (await this.rabbitmqService.find(instance)).events;
Expand Down

0 comments on commit d803a9e

Please sign in to comment.