Skip to content

Commit

Permalink
Refactored language for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwhelchel committed Jan 11, 2024
1 parent f11b9a6 commit 1c483f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export function CreateAccount({
<Text style={{ lineHeight: '1.4em', fontSize: 15 }}>
<strong>
Link a <u>European</u> bank account
</strong>
</strong>{' '}
to automatically download transactions. GoCardless provides
reliable, up-to-date information from hundreds of banks.
</Text>
Expand All @@ -201,7 +201,7 @@ export function CreateAccount({
<Text style={{ lineHeight: '1.4em', fontSize: 15 }}>
<strong>
Link a <u>North American</u> bank account
</strong>
</strong>{' '}
to automatically download transactions. SimpleFIN provides
reliable, up-to-date information from hundreds of banks.
</Text>
Expand Down
2 changes: 1 addition & 1 deletion packages/loot-core/src/server/accounts/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function addGoCardlessAccounts(
});

// Do an initial sync
await bankSync.syncGoCardlessAccount(
await bankSync.syncExternalAccount(
userId,
userKey,
id,
Expand Down
10 changes: 1 addition & 9 deletions packages/loot-core/src/server/accounts/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,15 +807,7 @@ export async function addTransactions(
return newTransactions;
}

// TODO: This needs to be renamed to something more generic as it includes SimpleFin now.

export async function syncGoCardlessAccount(
userId,
userKey,
id,
acctId,
bankId,
) {
export async function syncExternalAccount(userId, userKey, id, acctId, bankId) {
// TODO: Handle the case where transactions exist in the future
// (that will make start date after end date)
const latestTransaction = await db.first(
Expand Down
6 changes: 3 additions & 3 deletions packages/loot-core/src/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ handlers['gocardless-accounts-link'] = async function ({
});
}

await bankSync.syncGoCardlessAccount(
await bankSync.syncExternalAccount(
undefined,
undefined,
id,
Expand Down Expand Up @@ -742,7 +742,7 @@ handlers['simplefin-accounts-link'] = async function ({
});
}

await bankSync.syncGoCardlessAccount(
await bankSync.syncExternalAccount(
undefined,
undefined,
id,
Expand Down Expand Up @@ -1281,7 +1281,7 @@ handlers['gocardless-accounts-sync'] = async function ({ id }) {
const acct = accounts[i];
if (acct.bankId) {
try {
const res = await bankSync.syncGoCardlessAccount(
const res = await bankSync.syncExternalAccount(
userId,
userKey,
acct.id,
Expand Down

0 comments on commit 1c483f4

Please sign in to comment.