diff options
| author | Adam Soltys <[email protected]> | 2022-11-01 11:51:14 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-01 11:51:14 -0700 |
| commit | 521480010080d61586e05366e23c6ba3633cb2fa (patch) | |
| tree | fc58e2e016bd79af0649bdaf99a3a33653bac65b | |
| parent | 440a026553f5b3aded02e35843f98e2b03e32c19 (diff) | |
| download | coinos-server-521480010080d61586e05366e23c6ba3633cb2fa.tar.gz coinos-server-521480010080d61586e05366e23c6ba3633cb2fa.zip | |
parse end time
| -rw-r--r-- | routes/payments.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js index 4c71cde0..678b646c 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -112,7 +112,7 @@ app.get("/payments", auth, async (req, res) => { }; if (start) where.createdAt[Op.gte] = new Date(parseInt(start)); - if (end) where.createdAt[Op.lte] = new Date(end); + if (end) where.createdAt[Op.lte] = new Date(parseInt(end)); if (!req.user.account_id) return res.send([]); |
