Show balance in list-contributors helper script

This commit is contained in:
bumi 2019-04-03 14:05:16 +02:00
parent 6351db3057
commit 74e61e1393

View File

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