update: hopefully......
This commit is contained in:
@@ -159,11 +159,4 @@ export const routes = new Elysia()
|
||||
};
|
||||
})
|
||||
|
||||
// Lightweight status poll
|
||||
.get("/checkout/:id/status", async ({ accountId, params, set }) => {
|
||||
const [payment] = await sql`
|
||||
SELECT status, txid FROM payments WHERE id = ${params.id} AND account_id = ${accountId}
|
||||
`;
|
||||
if (!payment) { set.status = 404; return { error: "Payment not found" }; }
|
||||
return { status: payment.status, txid: payment.txid };
|
||||
});
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user