productos, equivalencias, cross-sell y cantidades
This commit is contained in:
@@ -26,8 +26,14 @@ export async function handleCreateRecommendation({
|
||||
priority = 100,
|
||||
trigger_product_ids = [],
|
||||
recommended_product_ids = [],
|
||||
rule_type = "crosssell",
|
||||
trigger_event = null,
|
||||
items = [],
|
||||
}) {
|
||||
return insertRecommendation({ tenantId, rule_key, trigger, queries, boosts, ask_slots, active, priority, trigger_product_ids, recommended_product_ids });
|
||||
return insertRecommendation({
|
||||
tenantId, rule_key, trigger, queries, boosts, ask_slots, active, priority,
|
||||
trigger_product_ids, recommended_product_ids, rule_type, trigger_event, items
|
||||
});
|
||||
}
|
||||
|
||||
export async function handleUpdateRecommendation({
|
||||
@@ -41,8 +47,14 @@ export async function handleUpdateRecommendation({
|
||||
priority,
|
||||
trigger_product_ids,
|
||||
recommended_product_ids,
|
||||
rule_type,
|
||||
trigger_event,
|
||||
items,
|
||||
}) {
|
||||
return updateRecommendation({ tenantId, id, trigger, queries, boosts, ask_slots, active, priority, trigger_product_ids, recommended_product_ids });
|
||||
return updateRecommendation({
|
||||
tenantId, id, trigger, queries, boosts, ask_slots, active, priority,
|
||||
trigger_product_ids, recommended_product_ids, rule_type, trigger_event, items
|
||||
});
|
||||
}
|
||||
|
||||
export async function handleDeleteRecommendation({ tenantId, id }) {
|
||||
|
||||
Reference in New Issue
Block a user