MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / toComparable

Function toComparable

packages/payments/scripts/sync-subscriptions.ts:90–95  ·  view source on GitHub ↗
(value: Date | string | number | null | undefined)

Source from the content-addressed store, hash-verified

88}
89
90function toComparable(value: Date | string | number | null | undefined) {
91 if (value instanceof Date) {
92 return value.toISOString();
93 }
94 return value ?? null;
95}
96
97async function getAllSubscriptions(polar: Polar) {
98 const all: Array<Awaited<ReturnType<typeof polar.subscriptions.list>>['result']['items'][number]> =

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected