fixed back unit tests
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
342886942f
commit
ff626764d8
|
@ -79,14 +79,15 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await Promise.all(promises);
|
||||||
|
|
||||||
const isTicketEmpty = await models.Ticket.isEmpty(id, options);
|
const isTicketEmpty = await models.Ticket.isEmpty(id, options);
|
||||||
if (isTicketEmpty) {
|
if (isTicketEmpty) {
|
||||||
originalTicket.updateAttributes({
|
await originalTicket.updateAttributes({
|
||||||
isDeleted: true
|
isDeleted: true
|
||||||
}, options);
|
}, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(promises);
|
|
||||||
await tx.commit();
|
await tx.commit();
|
||||||
|
|
||||||
return {id: ticketId};
|
return {id: ticketId};
|
||||||
|
|
Loading…
Reference in New Issue