Syntax and linting issues

This commit is contained in:
2022-04-27 18:05:51 +02:00
parent b80273b308
commit 50b10dd46c
2 changed files with 19 additions and 17 deletions

View File

@@ -2,11 +2,11 @@ const Record = require("./record");
const ExpenseSerializer = require("../serializers/expense");
class Reimbursement extends Record {
get count() {
get count () {
return this.contract.reimbursementsCount();
}
getById(id) {
getById (id) {
return this.contract.get(id).then((data) => {
return this.ipfs.catAndMerge(data, (ipfsDocument) => {
const expenses = JSON.parse(ipfsDocument);
@@ -15,11 +15,11 @@ class Reimbursement extends Record {
});
}
getData(id) {
getData (id) {
return this.contract.getReimbursement(id);
}
async add(attrs, callOptions = {}) {
async add (attrs, callOptions = {}) {
const amount = parseInt(attrs.amount);
const token = attrs.token;
const recipientId = attrs.recipientId;