Skip to content
Permalink
Browse files

Fix totalin and totalout not being updated properly

  • Loading branch information...
Lemmmy committed Jan 19, 2019
1 parent dc0b206 commit 6a1f04d6c4db75efeb3f86e1406411945af8eb1a
Showing with 2 additions and 2 deletions.
  1. +1 −1 config.example.js
  2. +1 −1 src/transactions.js
@@ -13,7 +13,7 @@ config.databaseDB = 'example';
config.databaseUser = 'example';
// The password used to authenticate against the database
config.databasePass = 'example';
// The dialect used to connect, one of: mysql, postgres, mariadb or mssql. (sqlite not supported, fuck you Taras!)
// The dialect used to connect, one of: mysql, postgres, mariadb or mssql.
config.databaseDialect = 'mysql';

/*
@@ -116,7 +116,7 @@ Transactions.pushTransaction = function(sender, recipientAddress, amount, metada
totalout: 0
}));
} else {
promises.push(recipient.increment({ balance: amount, totalout: amount }));
promises.push(recipient.increment({ balance: amount, totalin: amount }));
}

Promise.all(promises).then(function(results) {

0 comments on commit 6a1f04d

Please sign in to comment.
You can’t perform that action at this time.