fix: refs #7906 remake method #3109
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3109
Loading…
Reference in New Issue
No description provided.
Delete Branch "7906-notDeleteZone"
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: fix: refs #7906 remake methodto fix: refs #7906 remake method@ -61,2 +61,4 @@
if (ticketList.length > 0)
throw new UserError('There are tickets for this area, delete them first');
for (ticket of ticketList) {
Pero si no se vol que se puga si te tickets, ja no cal mirar els tickets no?
@ -52,22 +53,10 @@ module.exports = Self => {
const promises = [];
Quitar
@ -68,4 +60,1 @@
}, myOptions));
}
}
await Promise.all(promises);
Quitar
@ -8,7 +8,7 @@ describe('zone deletezone()', () => {
__: value => value
};
Fica un test q prove el nou error "here are tickets for this area, delete them first"
@ -57,0 +52,4 @@
const options = {transaction: tx};
await models.Zone.deleteZone(ctx, zoneId2, options);
expect(e.message).toEqual('There are tickets for this area, delete them first');
Fijat be