0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 12:08:40 +00:00

-proj in countdocs

This commit is contained in:
Víctor Losada Hernández
2024-02-21 08:07:46 +01:00
parent 01e3cd0296
commit 094ad3bd59
+1 -1
View File
@@ -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);