From c5ab964ceffddf0ce504d468f9b3d38d50d752db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Wed, 5 Apr 2023 13:07:20 +0200 Subject: [PATCH] API: Add type filter to most-recent-drop otherwise claims would break the output --- api/jsonApi.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/jsonApi.js b/api/jsonApi.js index 4930c17..fbcdeb8 100644 --- a/api/jsonApi.js +++ b/api/jsonApi.js @@ -60,7 +60,10 @@ router.get('/most-recent-drop', async (req, res) => { try { const mostRecentDrop = await DropHistory.findOne({ - order: [['createdAt', 'DESC']] + order: [['createdAt', 'DESC']], + where: { + type: 0 + } }); if (!mostRecentDrop) {