chore: build
Frontend Admin - EAS Build / build (push) Failing after 1h1m12s

This commit is contained in:
2026-06-25 19:22:51 +02:00
parent 5d92316093
commit 1ebd19b797
2 changed files with 71 additions and 31 deletions
+2 -3
View File
@@ -446,11 +446,10 @@ export const createProductAdmin = async (formData: FormData) => {
`${V2}/admin/protected/products`,
formData,
{
headers: { "Content-Type": "multipart/form-data" },
timeout: 120000,
},
);
return { success: true, data: data.data, message: data.message };
return { success: true, data: data.product, message: data.message };
};
export const updateProductAdmin = async (
@@ -749,7 +748,7 @@ export const uploadProductMediaAdmin = async (
const { data } = await apiClient.post(
`${V2}/admin/protected/products/${productId}/media`,
fd,
{ headers: { "Content-Type": "multipart/form-data" }, timeout: 120000 },
{ timeout: 120000 },
);
return { success: true, media: data.media, message: data.message };
};