feat(actions): enhance updateProductWithTags function with additional fields for canonicalName and category
This commit is contained in:
@@ -63,6 +63,8 @@ export async function updateProductWithTags(formData: FormData, tags: string[])
|
|||||||
const id = Number(formData.get('id'));
|
const id = Number(formData.get('id'));
|
||||||
console.log('[actions:updateProductWithTags] called for product id:', id, 'tags:', tags);
|
console.log('[actions:updateProductWithTags] called for product id:', id, 'tags:', tags);
|
||||||
const name = String(formData.get('name') || '').trim();
|
const name = String(formData.get('name') || '').trim();
|
||||||
|
const canonicalName = String(formData.get('canonicalName') || '').trim();
|
||||||
|
const category = String(formData.get('category') || '').trim();
|
||||||
const subcategory = String(formData.get('subcategory') || '').trim();
|
const subcategory = String(formData.get('subcategory') || '').trim();
|
||||||
const brand = String(formData.get('brand') || '').trim();
|
const brand = String(formData.get('brand') || '').trim();
|
||||||
const categoryIdRaw = formData.get('categoryId');
|
const categoryIdRaw = formData.get('categoryId');
|
||||||
|
|||||||
Reference in New Issue
Block a user