Break out ref and copyright to own responses (#79)
This commit is contained in:
@@ -84,8 +84,6 @@ async function getProductsSearchResult(
|
||||
const prods = Promise.all([
|
||||
prodApi.searchByName(q),
|
||||
prodApi.searchByArtNo(q),
|
||||
prodApi.searchByCopyright(q),
|
||||
prodApi.searchByReferences(q),
|
||||
]).then((d) => d.flat());
|
||||
|
||||
return {
|
||||
@@ -95,6 +93,8 @@ async function getProductsSearchResult(
|
||||
keywords: keywApi.searchKeywords(q),
|
||||
categories: catApi.searchCategories(q),
|
||||
designers: designerApi.searchDesigners(q),
|
||||
copyrights: prodApi.searchByCopyright(q),
|
||||
references: prodApi.searchByReferences(q),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user