Remove unused getExpiresAt function
This commit is contained in:
parent
68eac613d7
commit
d0bf9f929b
1 changed files with 0 additions and 12 deletions
|
@ -30,15 +30,3 @@ export function markRead(
|
|||
|
||||
return nextMessageAttributes;
|
||||
}
|
||||
|
||||
export function getExpiresAt(
|
||||
messageAttrs: Pick<
|
||||
MessageAttributesType,
|
||||
'expireTimer' | 'expirationStartTimestamp'
|
||||
>
|
||||
): number | undefined {
|
||||
const { expireTimer, expirationStartTimestamp } = messageAttrs;
|
||||
return expirationStartTimestamp && expireTimer
|
||||
? expirationStartTimestamp + expireTimer * 1000
|
||||
: undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue