Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/lib/server/phoenixd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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());
Expand Down