mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 08:52:38 +00:00
limit to 1000
This commit is contained in:
@@ -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 = 2000;
|
const limit = 1000;
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user