Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ (bank-sync) unify the sync/reconciliation logic for internal & external sync #2534

Merged
merged 12 commits into from
Apr 9, 2024
20 changes: 0 additions & 20 deletions packages/loot-core/src/client/actions/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,6 @@ export function linkAccountSimpleFin(externalAccount, upgradingId) {
};
}

// TODO: type correctly or remove (unused)
export function connectAccounts(
institution,
publicToken,
accountIds,
offbudgetIds,
) {
return async (dispatch: Dispatch) => {
const ids = await send('accounts-connect', {
institution,
publicToken,
accountIds,
offbudgetIds,
});
await dispatch(getPayees());
await dispatch(getAccounts());
return ids;
};
}

export function syncAccounts(id?: string) {
return async (dispatch: Dispatch, getState: GetState) => {
// Disallow two parallel sync operations
Expand Down
Loading
Loading