0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 05:32:41 +00:00

exclude last fix

This commit is contained in:
Víctor Losada Hernández
2024-01-28 00:55:22 +01:00
parent 9366284e1d
commit 81f26e0892

View File

@@ -10,11 +10,13 @@ const archive = {
const limit = 2000; const limit = 2000;
const brews = await HomebrewModel.find({ const brews = await HomebrewModel.find({
title: { $regex: req.params.query, $options: 'i' }, title: { $regex: req.params.query, $options: 'i' },
published: true
},
{
editId:0, editId:0,
googleId:0, googleId:0,
text:0, text:0,
textBin:0, textBin:0,
published: true
}) })
.limit(limit) .limit(limit)
.maxTimeMS(10000) .maxTimeMS(10000)