diff options
| author | Adam Soltys <[email protected]> | 2024-09-25 12:16:52 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-25 12:16:52 -0700 |
| commit | 4c287cfd82acd5fd2ca4ec5816e1434b00e80fdb (patch) | |
| tree | 0a162d4549aa41ee3ff263d127cdc152edd5455d | |
| parent | 290321cf4d1cd38668f72657bdb35b29973c65c5 (diff) | |
| download | coinos-server-4c287cfd82acd5fd2ca4ec5816e1434b00e80fdb.tar.gz coinos-server-4c287cfd82acd5fd2ca4ec5816e1434b00e80fdb.zip | |
default aid
| -rw-r--r-- | routes/payments.ts | 1 |
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; |
