diff --git a/src/lib/server/phoenixd.ts b/src/lib/server/phoenixd.ts index 47cd7e777..ae4838cd9 100644 --- a/src/lib/server/phoenixd.ts +++ b/src/lib/server/phoenixd.ts @@ -98,7 +98,6 @@ export async function phoenixdLookupInvoice(paymentHash: string) { `Could not lookup invoice ${paymentHash} on PhoenixD: ${res.status} ${await res.text()}` ); } - const json = z .object({ paymentHash: z.string(), @@ -109,7 +108,7 @@ export async function phoenixdLookupInvoice(paymentHash: string) { isPaid: z.boolean(), receivedSat: z.number(), fees: z.number(), - completedAt: z.number().nullable(), // in MS + completedAt: z.number().optional(), // in MS createdAt: z.number() // in MS }) .parse(await res.json());