API: Add type filter to most-recent-drop
otherwise claims would break the output
This commit is contained in:
@@ -60,7 +60,10 @@ router.get('/most-recent-drop', async (req, res) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const mostRecentDrop = await DropHistory.findOne({
|
const mostRecentDrop = await DropHistory.findOne({
|
||||||
order: [['createdAt', 'DESC']]
|
order: [['createdAt', 'DESC']],
|
||||||
|
where: {
|
||||||
|
type: 0
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!mostRecentDrop) {
|
if (!mostRecentDrop) {
|
||||||
|
|||||||
Reference in New Issue
Block a user