Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rlesniak committed Nov 6, 2023
1 parent c6eb856 commit 5e83aea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/loot-core/src/server/importers/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { handlers } from '../main';

import importActual from './actual';
import * as Wallet from './wallet';
import * as YNAB4 from './ynab4';
import * as YNAB5 from './ynab5';
import * as Wallet from './wallet';

type ImportableBudgetType = 'ynab4' | 'ynab5' | 'actual' | 'wallet';

Expand Down
1 change: 1 addition & 0 deletions packages/loot-core/src/server/importers/wallet-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-unused-modules */
export namespace Wallet {
export type Transactions = Transaction[];

Expand Down
6 changes: 3 additions & 3 deletions packages/loot-core/src/server/importers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Wallet } from './wallet-types';
function buildTransfers(
data: Wallet.Transactions,
entityIdMap: Map<string, string>,
payees: any[],
payees: { transfer_acct: string; id: string }[],
) {
const transfers = data.filter(t => t.category === 'TRANSFER');

Expand Down Expand Up @@ -59,8 +59,8 @@ function importAccounts(
) {
const accounts = new Set<string>();

data.forEach(transation => {
accounts.add(transation.account);
data.forEach(transaction => {
accounts.add(transaction.account);
});

return Promise.all(
Expand Down

0 comments on commit 5e83aea

Please sign in to comment.