update: hopefully......

This commit is contained in:
2026-03-19 00:53:20 +04:00
parent 8a24b30b2a
commit 1e6739b42a
2 changed files with 22 additions and 14 deletions
+1 -8
View File
@@ -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 };
});
;