Skip to content

Commit

Permalink
Fix SimpleFIN blank payee introduced in #353 (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
duplaja authored Jul 15, 2024
1 parent 145659b commit 7824c52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/app-simplefin/app-simplefin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import express from 'express';
import { inspect } from 'util';
import https from 'https';
import { SecretName, secretsService } from '../services/secrets-service.js';
import { formatPayeeName } from '../util/payee-name.js';
import { handleError } from '../app-gocardless/util/handle-error.js';

const app = express();
Expand Down Expand Up @@ -144,9 +143,7 @@ app.post(
.split('T')[0];

newTrans.date = new Date(dateToUse * 1000).toISOString().split('T')[0];
newTrans.debtorName = trans.payee;
newTrans.payeeName = formatPayeeName(trans);
//newTrans.debtorAccount = don't have compared to GoCardless
newTrans.payeeName = trans.payee;
newTrans.remittanceInformationUnstructured = trans.description;
newTrans.transactionAmount = { amount: trans.amount, currency: 'USD' };
newTrans.transactionId = trans.id;
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/397.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [duplaja]
---

Fix SimpleFIN blank payee introduced in #353

0 comments on commit 7824c52

Please sign in to comment.