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);