Add function to update product option names

This commit introduces a new async function, `set.name`, to update the name of product options via the appropriate API endpoint. This improves the flexibility of modifying product option properties.
This commit is contained in:
Jepp9350
2025-03-06 16:05:24 +01:00
parent 76836680e1
commit d0cda61e59
@@ -94,6 +94,14 @@ export const getProductOptions = async (id) => {
);
},
set: {
name: async (id, name) => {
return ObjectsGlobal.set.column(
ProductOptions.meta.endpoint,
id,
"name",
name
)
},
product_id: async (id, product_id) => {
return ObjectsGlobal.set.column(
ProductOptions.meta.endpoint,