0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 15:12:39 +00:00

limit search and adapt ui

This commit is contained in:
Víctor Losada Hernández
2024-01-24 21:15:26 +01:00
parent 0c167d803c
commit 89fddd0210
3 changed files with 31 additions and 6 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 = 3;
const limit = 100;
const brews = await HomebrewModel.find({
title: { $regex: req.params.query, $options: 'i' },
published: true