From 5d4fb1c4234915172188db236e7c9d7d1481d48f Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 1 Oct 2020 17:23:22 +0200 Subject: [PATCH] Fix reimbursement handling after creation --- app/services/kredits.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/kredits.js b/app/services/kredits.js index d577e73..a2a98d5 100644 --- a/app/services/kredits.js +++ b/app/services/kredits.js @@ -583,11 +583,11 @@ export default Service.extend({ return this.kredits.Reimbursement.add(attributes, { gasLimit: 300000 }) .then(data => { console.debug('[kredits] add reimbursement response', data); - const reimbursement = Reimbursement.create(processReimbursementData(data)); + const reimbursement = Reimbursement.create(attributes); reimbursement.setProperties({ - contributor: this.contributors.findBy('id', attributes.contributorId), + contributor: this.contributors.findBy('id', attributes.contributorId.toString()), pendingTx: data, - confirmedAtBlock: this.currentBlock + 40320 + confirmedAt: this.currentBlock + 40320 }); this.reimbursements.pushObject(reimbursement); return reimbursement;