From da64810a4a87260a2d5dfd032b934eb0d1b69748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 25 Oct 2021 16:37:36 -0400 Subject: [PATCH] fix: crash --- src/controllers/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/search.js b/src/controllers/search.js index e3d9304dd7..906277f8ba 100644 --- a/src/controllers/search.js +++ b/src/controllers/search.js @@ -67,8 +67,8 @@ searchController.search = async function (req, res, next) { const [searchData, categoriesData] = await Promise.all([ search.search(data), - recordSearch(data), buildCategories(req.uid, searchOnly), + recordSearch(data), ]); searchData.pagination = pagination.create(page, searchData.pageCount, req.query);