From 094ad3bd59d99a34e49a9e1e2d35f77361d0981b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Wed, 21 Feb 2024 08:07:46 +0100 Subject: [PATCH] -proj in countdocs --- server/archive.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/archive.api.js b/server/archive.api.js index fffe24497..6779526e2 100644 --- a/server/archive.api.js +++ b/server/archive.api.js @@ -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);