mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 15:35:22 +02:00
simplify
This commit is contained in:
parent
3e5d3bd1b4
commit
cd740d57bc
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ export class TellerETL implements IETL<Connection, TellerRawData, TellerData> {
|
|||
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<Connection, TellerRawData, TellerData> {
|
|||
${transactionId},
|
||||
${date}::date,
|
||||
${description},
|
||||
${DbUtil.toDecimal(Number(-amount))},
|
||||
${DbUtil.toDecimal(Number(amount))},
|
||||
${status === 'pending'},
|
||||
${'USD'},
|
||||
${details.counterparty?.name ?? ''},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue