4616-ticket.sale_mana #1088
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1088
Loading…
Reference in New Issue
No description provided.
Delete Branch "4616-ticket.sale_mana"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -122,0 +143,4 @@
await createSaleComponent(sale.id, value, componentId, myOptions);
} else
await createSaleComponent(sale.id, value, componentId, myOptions);
Esta linea está repetida en ambos casos, se puede extraer fuera del condicional
@ -122,0 +133,4 @@
}
}, myOptions);
let newComponent;
No utilizar variables globales, es más dificil de hacer seguimiento
@ -122,0 +139,4 @@
saleFk: sale.id,
componentFk: oldComponent.componentFk
};
await models.SaleComponent.destroyAll(filter, myOptions);
Asignar el resultado de esta función (Promesa) a una variable, y hacer el push al array.