mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: crash
This commit is contained in:
@@ -67,8 +67,8 @@ searchController.search = async function (req, res, next) {
|
|||||||
|
|
||||||
const [searchData, categoriesData] = await Promise.all([
|
const [searchData, categoriesData] = await Promise.all([
|
||||||
search.search(data),
|
search.search(data),
|
||||||
recordSearch(data),
|
|
||||||
buildCategories(req.uid, searchOnly),
|
buildCategories(req.uid, searchOnly),
|
||||||
|
recordSearch(data),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
searchData.pagination = pagination.create(page, searchData.pageCount, req.query);
|
searchData.pagination = pagination.create(page, searchData.pageCount, req.query);
|
||||||
|
|||||||
Reference in New Issue
Block a user