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:18 -0700
commit6f540461418e283f2c55478496aac403cfce72b8 (patch)
treee2c3b2dd3a6384bcf921e8b2ee46394f2961ce58
parentd60f0d51c5449352f688fa11b646498e907cb726 (diff)
downloadcoinos-server-6f540461418e283f2c55478496aac403cfce72b8.tar.gz
coinos-server-6f540461418e283f2c55478496aac403cfce72b8.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([]);