From 5fbbd92ea7fa61a5880ed2d16f6fdcc5fa9b965e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 28 Jan 2024 01:12:46 +0100 Subject: [PATCH] limit to 1000 --- 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 6047b9cb1..8642f0538 100644 --- a/server/archive.api.js +++ b/server/archive.api.js @@ -7,7 +7,7 @@ const archive = { /* Searches for matching title, also attempts to partial match */ findBrews: async (req, res, next) => { try { - const limit = 2000; + const limit = 1000; const brews = await HomebrewModel.find({ title: { $regex: req.params.query, $options: 'i' }, published: true