MCPcopy Create free account
hub / github.com/cameri/nostream / isExpiredInvoice

Function isExpiredInvoice

src/utils/invoice.ts:1–2  ·  view source on GitHub ↗
(invoice: { expiresAt?: Date | null })

Source from the content-addressed store, hash-verified

1export const isExpiredInvoice = (invoice: { expiresAt?: Date | null }): boolean =>
2 invoice.expiresAt instanceof Date && invoice.expiresAt.getTime() <= Date.now()

Callers 2

getInvoiceMethod · 0.90
onScheduleMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected