update: ....
This commit is contained in:
@@ -211,7 +211,7 @@ export const dashboard = new Elysia()
|
||||
SELECT id, plan, months, amount_usd, coin, amount_crypto, status, created_at, paid_at, expires_at, txid
|
||||
FROM payments
|
||||
WHERE account_id = ${accountId}
|
||||
AND (status = 'paid' OR (status IN ('pending', 'confirming') AND expires_at >= now()))
|
||||
AND (status = 'paid' OR (status IN ('pending', 'underpaid', 'confirming') AND expires_at >= now()))
|
||||
ORDER BY created_at DESC
|
||||
LIMIT 20
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user