File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ export { default as removeCartItem } from './cart/removeCartItem'
55export { default as cart } from './cart'
66export { default as fetchWithGraphQl } from './fetchWithGraphQl'
77export { default as product } from './product'
8+ export { default as productSuggestions } from './product/productSuggestions'
89export { default as routes } from './routes'
910export { default as session } from './session'
1011export { default as signIn } from './session/signIn'
1112export { default as signOut } from './session/signOut'
1213export { default as signUp } from './session/signUp'
1314export { default as subcategory } from './subcategory'
1415export { default as search } from './search'
16+ export { default as searchSuggestions } from './search/searchSuggestions'
1517
1618export { default } from './types/Connector'
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ import { Product } from '../types/ProductPageData'
33/**
44 * @TODO : implement
55 */
6- function productSuggestions ( params , req , res ) : Promise < Product [ ] > {
7- return Promise . resolve ( [ ] ) ;
6+ async function productSuggestions ( params , req , res ) : Promise < Product [ ] > {
7+ const result = await Promise . resolve ( [ ] ) ;
8+ return result ;
89}
910
1011export default productSuggestions
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ import SearchSuggestions from 'react-storefront-connector/SearchSuggestions'
33/**
44 * @TODO : implement
55 */
6- function searchSuggestions ( params , req , res ) : Promise < SearchSuggestions > {
7- return Promise . resolve ( {
6+ async function searchSuggestions ( params , req , res ) : Promise < SearchSuggestions > {
7+ const result = await Promise . resolve ( {
88 text : '' ,
99 groups : [ ] ,
1010 } )
11+ return result
1112}
1213
1314export default searchSuggestions
You can’t perform that action at this time.
0 commit comments