0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 21:12:41 +00:00

limit to 3000

This commit is contained in:
Víctor Losada Hernández
2024-01-27 16:25:06 +01:00
parent ae4e1b55e6
commit 0ac0ffe53d

View File

@@ -7,7 +7,7 @@ const archive = {
/* Searches for matching title, also attempts to partial match */ /* Searches for matching title, also attempts to partial match */
findBrews: async (req, res, next) => { findBrews: async (req, res, next) => {
try { try {
const limit = 100; const limit = 3000;
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 published: true