Skip to content

Commit

Permalink
bugfix(functions): fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed Dec 22, 2023
1 parent c632511 commit 0eca96e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
ContributionSourceKey,
StatusKey,
} from '../../../../shared/src/types/contribution';
import { Currency } from '../../../../shared/src/types/currency';
import { USER_FIRESTORE_PATH, User } from '../../../../shared/src/types/user';

// TODO: write tests
Expand Down Expand Up @@ -40,7 +41,7 @@ export class PostfinancePaymentsFileImporter {
for (let node of nodes) {
const contribution: BankWireContribution = {
reference_id: parseFloat(select('string(//ns:Refs/ns:AcctSvcrRef)', node) as string),
currency: (select('string(//ns:Amt/@Ccy)', node) as string).toUpperCase(),
currency: (select('string(//ns:Amt/@Ccy)', node) as string).toUpperCase() as Currency,
amount: parseFloat(select('string(//ns:Amt)', node) as string),
amount_chf: parseFloat(select('string(//ns:Amt)', node) as string),
fees_chf: 0,
Expand Down

0 comments on commit 0eca96e

Please sign in to comment.