aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-25 12:16:52 -0700
committerAdam Soltys <[email protected]>2024-09-25 12:16:52 -0700
commit4c287cfd82acd5fd2ca4ec5816e1434b00e80fdb (patch)
tree0a162d4549aa41ee3ff263d127cdc152edd5455d
parent290321cf4d1cd38668f72657bdb35b29973c65c5 (diff)
downloadcoinos-server-4c287cfd82acd5fd2ca4ec5816e1434b00e80fdb.tar.gz
coinos-server-4c287cfd82acd5fd2ca4ec5816e1434b00e80fdb.zip
default aid
-rw-r--r--routes/payments.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/payments.ts b/routes/payments.ts
index 81e76085..73a6b1f8 100644
--- a/routes/payments.ts
+++ b/routes/payments.ts
@@ -75,6 +75,7 @@ export default {
user: { id },
query: { aid, start, end, limit, offset },
} = req;
+ if (!aid || aid === "undefined") aid = id;
if (limit) limit = parseInt(limit);
offset = parseInt(offset) || 0;