Apply suggestions from code review
Co-Authored-By: Sebastian Kippe <sebastian@kip.pe>
This commit is contained in:
parent
c4ef8de018
commit
8f961bb102
@ -1,8 +1,7 @@
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
module.exports = async function(robot, kredits) {
|
||||
const Contributor = kredits.Contributor;
|
||||
const Contribution = kredits.Contribution;
|
||||
const { Contributor, Contribution } = kredits;
|
||||
|
||||
const kreditsContributionAmount = 500;
|
||||
const kreditsContributionKind = 'community';
|
||||
@ -17,7 +16,7 @@ module.exports = async function(robot, kredits) {
|
||||
|
||||
return getContributorByZoomDisplayName(displayName)
|
||||
.then(contributor => {
|
||||
let contribution = {
|
||||
const contribution = {
|
||||
contributorId: contributor.id,
|
||||
contributorIpfsHash: contributor.ipfsHash,
|
||||
amount: kreditsContributionAmount,
|
||||
|
Loading…
x
Reference in New Issue
Block a user