From 81f26e08921625433bee6c505d0ff0b7e33c3347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 28 Jan 2024 00:55:22 +0100 Subject: [PATCH] exclude last fix --- server/archive.api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/archive.api.js b/server/archive.api.js index b2b149b21..6047b9cb1 100644 --- a/server/archive.api.js +++ b/server/archive.api.js @@ -10,11 +10,13 @@ const archive = { const limit = 2000; const brews = await HomebrewModel.find({ title: { $regex: req.params.query, $options: 'i' }, + published: true + }, + { editId:0, googleId:0, text:0, textBin:0, - published: true }) .limit(limit) .maxTimeMS(10000)