Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit cf20131

Browse files
authored
Fix Linter Errors
1 parent 0bc5869 commit cf20131

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/app-simplefin/app-simplefin.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,11 @@ app.post('/transactions', async (req, res) => {
9797
let dateToUse = 0;
9898

9999
if(trans.posted == 0) {
100-
101100
newTrans.booked = false;
102101
dateToUse = trans.transacted_at;
103-
104102
} else {
105-
106103
newTrans.booked = true;
107104
dateToUse = trans.posted;
108-
109105
}
110106

111107
newTrans.bookingDate = new Date(dateToUse * 1000)
@@ -131,9 +127,9 @@ app.post('/transactions', async (req, res) => {
131127
}
132128

133129
response.transactions = {
134-
all: allTransactions,
135-
booked: bookedTransactions,
136-
pending: pendingTransactions,
130+
all: allTransactions,
131+
booked: bookedTransactions,
132+
pending: pendingTransactions,
137133
};
138134

139135
res.send({
@@ -222,7 +218,7 @@ async function getAccounts(accessKey, startDate, endDate) {
222218
if (endDate) {
223219
params.push(`end-date=${normalizeDate(endDate)}`);
224220
}
225-
221+
226222
params.push(`pending=1`);
227223

228224
if (params.length > 0) {

0 commit comments

Comments
 (0)