Skip to content

Commit

Permalink
fix(SqsService): getQueueInfo method return the correct consumer inst…
Browse files Browse the repository at this point in the history
…ance (#77)
  • Loading branch information
Verdini authored Apr 20, 2024
1 parent 72cb675 commit 7292ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sqs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class SqsService implements OnModuleInit, OnModuleDestroy {
throw new Error(`Consumer/Producer does not exist: ${name}`);
}

const { sqs, queueUrl } = (this.consumers.get(name) ?? this.producers.get(name)) as {
const { sqs, queueUrl } = (this.consumers.get(name).instance ?? this.producers.get(name)) as {
sqs: SQSClient;
queueUrl: string;
};
Expand Down

0 comments on commit 7292ce4

Please sign in to comment.