Skip to content

Commit

Permalink
fix(queue-service): tracking of delivery status fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raschan committed Apr 26, 2022
1 parent b4b01a3 commit baf174f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/queue/queue.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class QueueService {
const delivery: Delivery = await sender.send(messageToSend);

// istanbul ignore next: SendState is dependent on broker, very hard to mock out
return delivery.sent ? SendState.Success : SendState.Failed;
return delivery.sent || delivery.settled ? SendState.Success : SendState.Failed;
}

/**
Expand Down

0 comments on commit baf174f

Please sign in to comment.