ok
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user