Merge pull request #67 from 67P/feature/contributor-balance-1

Add balance when loading contributor
This commit was merged in pull request #67.
This commit is contained in:
2019-04-03 20:22:50 +02:00
committed by GitHub
3 changed files with 19 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ module.exports = async function(callback) {
const table = new Table({
head: ['ID', 'Account', 'Core?', 'Name']
head: ['ID', 'Account', 'Core?', 'Name', 'Balance']
})
let contributors = await kredits.Contributor.all()
@@ -26,7 +26,8 @@ module.exports = async function(callback) {
c.id.toString(),
c.account,
c.isCore,
`${c.name}`
`${c.name}`,
c.balance.toString()
])
})
console.log(table.toString())