messageSend Production
This commit is contained in:
parent
886c0f1e50
commit
62b0a29f7c
|
@ -44,7 +44,7 @@ module.exports = function(FakeProduction) {
|
|||
FakeProduction.beginTransaction({isolationLevel: FakeProduction.Transaction.READ_COMMITTED}, function(err, tx) {
|
||||
Message.create(messages, {transaction: tx}, function (err, res) {
|
||||
if(err){
|
||||
transaction.rollback(function(error) {
|
||||
tx.rollback(function(error) {
|
||||
(error) ? cb(error, null) : cb(err, null);
|
||||
});
|
||||
} else{
|
||||
|
|
Loading…
Reference in New Issue