Replace deprecated contract API calls

Use the new method.
This commit is contained in:
2020-10-29 12:07:42 +01:00
parent 078f78417c
commit 5c6540580b
3 changed files with 3 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ module.exports = async function(robot, kredits) {
kind: 'docs'
};
return Contribution.addContribution(contribution).catch(error => {
return Contribution.add(contribution).catch(error => {
robot.logger.error(`[hubot-kredits] Adding contribution failed:`, error);
});
}).catch(() => {