API: Add type filter to most-recent-drop

otherwise claims would break the output
This commit is contained in:
2023-04-05 13:07:20 +02:00
parent f1e01f2a9f
commit c5ab964cef

View File

@@ -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) {