#7663 setWeight #2817
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2817
Loading…
Reference in New Issue
No description provided.
Delete Branch "7663-setWeight"
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?
WIP: chore: refs #7663 WIP setWeightto WIP: #7663 setWeightWIP: #7663 setWeightto #7663 setWeight@ -0,0 +41,4 @@
try {
const ticket = await Self.findById(ticketId, null, myOptions);
if (ticket.weight) throw new UserError('Weight already set');
Esta comprobación la han pedido?
Sí, me dijo que solo se debe de poder establecer el peso del ticket si no tiene.
@ -0,0 +59,4 @@
workerDepartments.length == 2 &&
workerDepartments[0].departmentFk != workerDepartments[1].departmentFk
)
throw new UserError('You don\'t have enough privileges');
Yo daria un error mas especifico diciendo que no pueden pq no son del mismo equipo