master
parent
230aad7abc
commit
45bfebf2ca
|
@ -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
|
|
@ -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`,
|
||||
|
|
Loading…
Reference in New Issue