Improve/fix scripts #114

Merged
raucao merged 3 commits from chore/scripts into master 2019-04-24 12:57:44 +00:00
2 changed files with 17 additions and 18 deletions

View File

@ -40,8 +40,8 @@ module.exports = async function(callback) {
console.log(table.toString());
let totalContributionBalances = await kredits.Contribution.functions.totalCount(true);
console.log(`Total confirmed balance: ${totalContributionBalances}`);
let totalKreditsEarned = await kredits.Contribution.functions.totalKreditsEarned(true);
console.log(`Total confirmed kredits: ${totalKreditsEarned}`);
} catch (err) {
console.log(err);
}

View File

@ -21,10 +21,6 @@ module.exports = async function(callback) {
try {
const contributors = await kredits.Contributor.all()
} catch(e) {
callback(e);
return;
}
contributors.forEach((c) => {
table.push([
@ -40,7 +36,10 @@ module.exports = async function(callback) {
})
console.log(table.toString())
} catch(e) {
callback(e);
return;
}
callback()
}