diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-28 09:57:23 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-28 09:57:23 +0700 |
| commit | 778dcf944561e74cb915d41aff810c3f433daa43 (patch) | |
| tree | 75ebd87710efadab88f1332f5f06686c280df3cd /src/api | |
| parent | e50a8320d4b12c128feafd3a1e383d94b4c082f8 (diff) | |
Update popular weekly on popular product API
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/productApi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/productApi.js b/src/api/productApi.js index cca052f7..feb91257 100644 --- a/src/api/productApi.js +++ b/src/api/productApi.js @@ -3,7 +3,7 @@ import axios from 'axios' export const popularProductApi = () => { return async () => { const dataPopularProducts = await axios( - `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?q=*&page=1&orderBy=popular` + `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?q=*&page=1&orderBy=popular-weekly` ) return dataPopularProducts.data.response } |
