feat(shop): add dynamic linked fees to modules
This commit is contained in:
@@ -90,6 +90,7 @@ export async function createProduct(
|
||||
requirements: m.requirements || [],
|
||||
exclusions: m.exclusions || [],
|
||||
has_quantity: m.has_quantity ?? false,
|
||||
linked_fee_product_id: m.linked_fee_product_id || null,
|
||||
}))
|
||||
const { error: modulesError } = await supabase
|
||||
.from('product_modules')
|
||||
@@ -127,6 +128,7 @@ export async function updateProduct(id: string, product: Partial<Product>, modul
|
||||
requirements: m.requirements || [],
|
||||
exclusions: m.exclusions || [],
|
||||
has_quantity: m.has_quantity ?? false,
|
||||
linked_fee_product_id: m.linked_fee_product_id || null,
|
||||
}))
|
||||
const { error: modulesError } = await supabase
|
||||
.from('product_modules')
|
||||
|
||||
Reference in New Issue
Block a user