5929-editTicketPrice #1688
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1688
Loading…
Reference in New Issue
No description provided.
Delete Branch "5929-editTicketPrice"
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?
@ -50,3 +49,1 @@
const isEditable = await models.Ticket.isEditable(ctx, id, myOptions);
if (!isEditable)
throw new UserError(`The sales of this ticket can't be modified`);
const isEditable = await models.Ticket.isEditableOrThrow(ctx, id, myOptions);
No hace falta guardarse el valor en una variable
@ -120,3 +118,1 @@
if (!isEditable)
throw new UserError(`The sales of this ticket can't be modified`);
const isEditable = await models.Ticket.isEditableOrThrow(ctx, args.id, myOptions);
No hace falta guardarse el valor en una variable
@ -76,3 +73,1 @@
if (!isEditable)
throw new UserError(`The sales of this ticket can't be modified`);
const isEditable = await Self.isEditableOrThrow(ctx, args.id, myOptions);
No hace falta guardarse el valor en una variable
@ -37,3 +35,1 @@
if (!isEditable)
throw new UserError(`The current ticket can't be modified`);
const isEditable = await Self.isEditableOrThrow(ctx, id, myOptions);
No hace falta guardarse el valor en una variable
@ -43,3 +42,1 @@
if (!isEditable)
throw new UserError(`The sales of this ticket can't be modified`);
const isEditable = await Self.isEditableOrThrow(ctx, id, myOptions);
No hace falta guardarse el valor en una variable
@ -0,0 +68,4 @@
const ctx = {req: {accessToken: {userId: 1}}};
const result = await models.Ticket.isEditableOrThrow(ctx, 15, options);
No hace falta guardarse el valor en una variable
@ -0,0 +88,4 @@
const options = {transaction: tx};
const ctx = {req: {accessToken: {userId: 35}}};
result = await models.Ticket.isEditableOrThrow(ctx, 15, options);
No hace falta guardarse el valor en una variable
@ -33,3 +31,1 @@
if (!isEditable)
throw new UserError(`The current ticket can't be modified`);
const isEditable = await Self.isEditableOrThrow(ctx, id, myOptions);
No hace falta guardarse el valor en una variable
@ -51,3 +51,1 @@
const isEditable = await models.Ticket.isEditable(ctx, id, myOptions);
if (!isEditable)
throw new UserError(`The sales of this ticket can't be modified`);
const isEditable = await models.Ticket.isEditableOrThrow(ctx, id, myOptions);
No hace falta guardarse el valor en una variable