0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 10:42:44 +00:00

limit to 2000

This commit is contained in:
Víctor Losada Hernández
2024-01-27 21:46:28 +01:00
parent 625819da91
commit 20f61bff07
2 changed files with 9 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ const archive = {
/* Searches for matching title, also attempts to partial match */
findBrews: async (req, res, next) => {
try {
const limit = 3000;
const limit = 2000;
const brews = await HomebrewModel.find({
title: { $regex: req.params.query, $options: 'i' },
published: true