fixed back unit tests
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-09-11 08:24:28 +02:00
parent 342886942f
commit ff626764d8
1 changed files with 3 additions and 2 deletions

View File

@ -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};