This commit is contained in:
zadit
2025-02-13 08:07:57 +07:00
parent 1c8490b9ab
commit 2ceac51de2
5 changed files with 225 additions and 193 deletions

View File

@@ -110,7 +110,8 @@ export async function updateItem(
name,
price,
selectedImage,
description
description,
promoPrice
) {
try {
console.log(
@@ -124,6 +125,7 @@ export async function updateItem(
formData.append("price", price);
formData.append("image", selectedImage);
formData.append("description", description);
formData.append("promoPrice", promoPrice);
const response = await fetch(`${API_BASE_URL}/item/set-item/${itemId}`, {
method: "PUT",