Refactor target message for delivery receipt processing
This commit is contained in:
parent
e724f36b79
commit
c2b1d76e6d
3 changed files with 82 additions and 40 deletions
|
@ -39,6 +39,11 @@ export const parseMessageSendStatus = makeEnumParser(
|
|||
SendStatus.Pending
|
||||
);
|
||||
|
||||
export const UNDELIVERED_SEND_STATUSES = [
|
||||
SendStatus.Pending,
|
||||
SendStatus.Failed,
|
||||
];
|
||||
|
||||
const STATUS_NUMBERS: Record<SendStatus, number> = {
|
||||
[SendStatus.Failed]: 0,
|
||||
[SendStatus.Pending]: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue