0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

limit to 1000

This commit is contained in:
Víctor Losada Hernández
2024-01-28 01:12:46 +01:00
parent 81f26e0892
commit 5fbbd92ea7

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 = 2000;
const limit = 1000;
const brews = await HomebrewModel.find({
title: { $regex: req.params.query, $options: 'i' },
published: true