chore: fix add product with video
This commit is contained in:
@@ -343,6 +343,7 @@ export const createProductAdmin = async (formData: FormData) => {
|
||||
formData,
|
||||
{
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
timeout: 120000,
|
||||
},
|
||||
);
|
||||
return { success: true, data: data.data, message: data.message };
|
||||
@@ -460,7 +461,7 @@ export const uploadProductMediaAdmin = async (
|
||||
const { data } = await apiClient.post(
|
||||
`${V2}/admin/protected/products/${productId}/media`,
|
||||
fd,
|
||||
{ headers: { "Content-Type": "multipart/form-data" } },
|
||||
{ headers: { "Content-Type": "multipart/form-data" }, timeout: 120000 },
|
||||
);
|
||||
return { success: true, media: data.media, message: data.message };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user