Break out ref and copyright to own responses (#79)

This commit is contained in:
Niklas Fondberg
2021-10-27 13:15:16 +02:00
committed by GitHub
parent 56ad07edf8
commit 68e7414e32
4 changed files with 46 additions and 26 deletions
+2 -2
View File
@@ -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),
};
}