diff options
| -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) { |
