Amir Hossein Khademi 2024-09-16 03:22:31 +03:30
parent 230aad7abc
commit 45bfebf2ca
2 changed files with 3 additions and 3 deletions

View File

@ -6,4 +6,4 @@ NEXT_PUBLIC_PUBLIC_URL=https://api.vesmeh.com
NEXT_PUBLIC_API_URL=https://api.vesmeh.com/api
NEXT_PUBLIC_STORAGE_URL=http://storage.vesmeh.com
STORAGE_URL=http://storage.vesmeh.com
NEXT_PUBLIC_PACKAGE_VERSION=1.0.3.5
NEXT_PUBLIC_PACKAGE_VERSION=1.0.5.7

View File

@ -66,7 +66,7 @@ const ProductData = ({ params, data }) => {
};
const createProductReview = async () => {
const body = { title: "", comment, rate: "", productId: params.id[0] };
const body = { title: "", comment, rate: 1, productId: params.id[0] };
try {
const data = await Chapar.post(
`${process.env.NEXT_PUBLIC_API_URL}/product/review`,