messageSend Production

This commit is contained in:
Vicente Falco 2017-07-12 07:57:30 +02:00
parent 886c0f1e50
commit 62b0a29f7c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ module.exports = function(FakeProduction) {
FakeProduction.beginTransaction({isolationLevel: FakeProduction.Transaction.READ_COMMITTED}, function(err, tx) { FakeProduction.beginTransaction({isolationLevel: FakeProduction.Transaction.READ_COMMITTED}, function(err, tx) {
Message.create(messages, {transaction: tx}, function (err, res) { Message.create(messages, {transaction: tx}, function (err, res) {
if(err){ if(err){
transaction.rollback(function(error) { tx.rollback(function(error) {
(error) ? cb(error, null) : cb(err, null); (error) ? cb(error, null) : cb(err, null);
}); });
} else{ } else{