get the longer string filters working
This commit is contained in:
@@ -49,7 +49,9 @@ app.post('/api/game', jsonParser, async (req, res) => {
|
||||
order: orderBy,
|
||||
where: filter
|
||||
})
|
||||
const pageCount = Math.ceil((await Character.count()) / count)
|
||||
const pageCount = Math.ceil((await Game.count({
|
||||
where: filter
|
||||
})) / count)
|
||||
|
||||
res.setHeader('Content-Type', 'application/json')
|
||||
res.send({ gameData, pageCount })
|
||||
|
||||
Reference in New Issue
Block a user