diff options
| author | Adam Soltys <[email protected]> | 2025-08-10 18:59:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-08-10 18:59:07 -0700 |
| commit | 6b07707726082036a402e28d7275576a1e51182b (patch) | |
| tree | 8bf2df2b2b5dbddb26cae9556ef8a219a36201db | |
| parent | 05b18b10c42fe6a21549f05813db6adad59e3362 (diff) | |
| download | coinos-server-6b07707726082036a402e28d7275576a1e51182b.tar.gz coinos-server-6b07707726082036a402e28d7275576a1e51182b.zip | |
check for existence
| -rw-r--r-- | routes/payments.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/payments.ts b/routes/payments.ts index def8dc69..c09cf3fb 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -243,8 +243,8 @@ export default { payments = payments.filter((p) => p); - const { amount: authorization } = await g(`authorization:${id}`); - res.send({ amount, authorization, payments }); + const authorization = await g(`authorization:${id}`); + res.send({ amount, authorization: authorization?.amount, payments }); }, // async withdraw(req, res) { |
