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);
|
||||
if (isTicketEmpty) {
|
||||
originalTicket.updateAttributes({
|
||||
await originalTicket.updateAttributes({
|
||||
isDeleted: true
|
||||
}, options);
|
||||
}
|
||||
|
||||
await Promise.all(promises);
|
||||
await tx.commit();
|
||||
|
||||
return {id: ticketId};
|
||||
|
|
Loading…
Reference in New Issue