aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-01 11:51:14 -0700
committerAdam Soltys <[email protected]>2022-11-01 11:51:14 -0700
commit521480010080d61586e05366e23c6ba3633cb2fa (patch)
treefc58e2e016bd79af0649bdaf99a3a33653bac65b
parent440a026553f5b3aded02e35843f98e2b03e32c19 (diff)
downloadcoinos-server-521480010080d61586e05366e23c6ba3633cb2fa.tar.gz
coinos-server-521480010080d61586e05366e23c6ba3633cb2fa.zip
parse end time
-rw-r--r--routes/payments.js2
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([]);