Add contribution basics
This commit is contained in:
@@ -203,6 +203,17 @@ export default Service.extend({
|
||||
});
|
||||
},
|
||||
|
||||
addContribution(attributes) {
|
||||
console.debug('[kredits] add contribution', attributes);
|
||||
|
||||
return this.kredits.Contribution.addContribution(attributes)
|
||||
.then(data => {
|
||||
console.debug('[kredits] add contribution response', data);
|
||||
attributes.contributor = this.contributors.findBy('id', attributes.contributorId);
|
||||
return Contribution.create(attributes);
|
||||
});
|
||||
},
|
||||
|
||||
addProposal(attributes) {
|
||||
console.debug('[kredits] add proposal', attributes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user