mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-26 09:32:51 +00:00
why didn't i think about this sooner
This commit is contained in:
@@ -84,9 +84,7 @@ const archive = {
|
||||
.maxTimeMS(5000)
|
||||
.exec();
|
||||
|
||||
const totalBrews = await HomebrewModel.countDocuments(
|
||||
titleQuery
|
||||
).maxTimeMS(5000);
|
||||
const totalBrews = brews.length;
|
||||
|
||||
const totalPages = Math.ceil(totalBrews / pageSize);
|
||||
console.log('Total brews: ', totalBrews);
|
||||
|
||||
Reference in New Issue
Block a user