Rename recipientId to contributorId in proposals

This commit is contained in:
2018-04-15 19:02:35 +02:00
parent 7b5cea3613
commit 8aa941e704
7 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ export default Controller.extend({
actions: {
save(proposal) {
// contributorIpfsHash is needed for the proposal ipfs data. I'm not happy to do this here but I think to load all the contributors in addProposal again is a bit too much. I hope we can refactor it later.
let contributor = this.get('contributors').findBy('id', proposal.recipientId);
let contributor = this.get('contributors').findBy('id', proposal.contributorId);
proposal.contributorIpfsHash = contributor.get('ipfsHash');
return this.get('kredits').addProposal(proposal)