mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
-proj in countdocs
This commit is contained in:
@@ -41,7 +41,7 @@ const archive = {
|
||||
.maxTimeMS(5000)
|
||||
.exec();
|
||||
|
||||
const totalBrews = await HomebrewModel.countDocuments(titleQuery, projection).maxTimeMS(5000);
|
||||
const totalBrews = await HomebrewModel.countDocuments(titleQuery).maxTimeMS(5000);
|
||||
|
||||
const totalPages = Math.ceil(totalBrews / pageSize);
|
||||
//console.log('Total brews: ', totalBrews);
|
||||
|
||||
Reference in New Issue
Block a user