Skip to content

Commit

Permalink
fix: Data not recieving in webhook (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Mar 7, 2024
2 parents 57f5ca3 + c7f0981 commit ff88c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/app/shared/services/queue.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export class QueueService {

publishToQueue(queueName: QueuesEnum.END_IMPORT, data: EndImportData): void;
publishToQueue(queueName: QueuesEnum.PROCESS_FILE, data: ProcessFileData): void;
publishToQueue(queueName: QueuesEnum, data: PublishToQueueData) {
async publishToQueue(queueName: QueuesEnum, data: PublishToQueueData) {
if (this.connection.isConnected()) {
this.chanelWrapper.sendToQueue(queueName, data, { durable: false });
await this.chanelWrapper.sendToQueue(queueName, data, { durable: false });
} else {
throw new Error('RabbitMQ connection is not established');
}
Expand Down

0 comments on commit ff88c99

Please sign in to comment.