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