aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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([]);