From 44e26ae422d822aa2e397fcb782b4affa79afd5a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 20 May 2023 10:42:42 +0700 Subject: Fix product popular api --- src/lib/home/api/popularProductApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/home/api/popularProductApi.js b/src/lib/home/api/popularProductApi.js index 4bb5e580..37e4390e 100644 --- a/src/lib/home/api/popularProductApi.js +++ b/src/lib/home/api/popularProductApi.js @@ -2,7 +2,7 @@ import axios from 'axios' const popularProductApi = async () => { const dataPopularProducts = await axios( - `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?q=*&page=1&orderBy=popular-weekly` + `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?q=*&page=1&orderBy=popular` ) return dataPopularProducts.data.response } -- cgit v1.2.3