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');
|
const fetch = require('node-fetch');
|
||||||
|
|
||||||
module.exports = async function(robot, kredits) {
|
module.exports = async function(robot, kredits) {
|
||||||
const Contributor = kredits.Contributor;
|
const { Contributor, Contribution } = kredits;
|
||||||
const Contribution = kredits.Contribution;
|
|
||||||
|
|
||||||
const kreditsContributionAmount = 500;
|
const kreditsContributionAmount = 500;
|
||||||
const kreditsContributionKind = 'community';
|
const kreditsContributionKind = 'community';
|
||||||
@ -17,7 +16,7 @@ module.exports = async function(robot, kredits) {
|
|||||||
|
|
||||||
return getContributorByZoomDisplayName(displayName)
|
return getContributorByZoomDisplayName(displayName)
|
||||||
.then(contributor => {
|
.then(contributor => {
|
||||||
let contribution = {
|
const contribution = {
|
||||||
contributorId: contributor.id,
|
contributorId: contributor.id,
|
||||||
contributorIpfsHash: contributor.ipfsHash,
|
contributorIpfsHash: contributor.ipfsHash,
|
||||||
amount: kreditsContributionAmount,
|
amount: kreditsContributionAmount,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user