fixed transactions
This commit is contained in:
parent
c512192052
commit
a010871a7d
|
@ -43,7 +43,7 @@ module.exports = function(Self) {
|
|||
countryFk: data.countryFk,
|
||||
isEqualizated: data.isEqualizated
|
||||
};
|
||||
newClient = await Self.create(client);
|
||||
newClient = await Self.create(client, {transaction});
|
||||
await transaction.commit();
|
||||
return newClient;
|
||||
} catch (e) {
|
||||
|
|
|
@ -63,7 +63,7 @@ module.exports = Self => {
|
|||
await model.Sale.updateAll(
|
||||
{id: {inq: selectedSalesId}},
|
||||
{ticketFk: newTicket.id},
|
||||
{transaction: transaction});
|
||||
{transaction});
|
||||
|
||||
await transaction.commit();
|
||||
|
||||
|
|
Loading…
Reference in New Issue