From cd740d57bc7fdace3d5506a607aca3a29b7c9b9e Mon Sep 17 00:00:00 2001 From: Tyler Myracle Date: Sat, 20 Jan 2024 12:09:55 -0600 Subject: [PATCH] simplify --- libs/server/features/src/providers/teller/teller.etl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/server/features/src/providers/teller/teller.etl.ts b/libs/server/features/src/providers/teller/teller.etl.ts index 51330589..6891de97 100644 --- a/libs/server/features/src/providers/teller/teller.etl.ts +++ b/libs/server/features/src/providers/teller/teller.etl.ts @@ -181,7 +181,7 @@ export class TellerETL implements IETL { maxRetries: 3, } ) - if (account!.classification === AccountClassification.liability) { + if (account!.classification === AccountClassification.asset) { transactions.forEach((t) => { t.amount = String(Number(t.amount) * -1) }) @@ -226,7 +226,7 @@ export class TellerETL implements IETL { ${transactionId}, ${date}::date, ${description}, - ${DbUtil.toDecimal(Number(-amount))}, + ${DbUtil.toDecimal(Number(amount))}, ${status === 'pending'}, ${'USD'}, ${details.counterparty?.name ?? ''},