diff --git a/apps/engine/src/providers/gocardless/gocardless-api.ts b/apps/engine/src/providers/gocardless/gocardless-api.ts index 1084bea1ee..33c0c0091c 100644 --- a/apps/engine/src/providers/gocardless/gocardless-api.ts +++ b/apps/engine/src/providers/gocardless/gocardless-api.ts @@ -1,5 +1,5 @@ import { ProviderError } from "@/utils/error"; -import { formatISO, subMonths } from "date-fns"; +import { formatISO, subDays } from "date-fns"; import xior from "xior"; import type { XiorInstance, XiorRequestConfig } from "xior"; import type { GetInstitutionsRequest, ProviderParams } from "../types"; @@ -298,7 +298,7 @@ export class GoCardLessApi { token, latest ? { - date_from: formatISO(subMonths(new Date(), 1), { + date_from: formatISO(subDays(new Date(), 3), { representation: "date", }), } diff --git a/apps/engine/src/providers/plaid/plaid-api.ts b/apps/engine/src/providers/plaid/plaid-api.ts index 002dee7eb8..719bc544bd 100644 --- a/apps/engine/src/providers/plaid/plaid-api.ts +++ b/apps/engine/src/providers/plaid/plaid-api.ts @@ -131,7 +131,7 @@ export class PlaidApi { if (latest) { const { data } = await this.#client.transactionsSync({ access_token: accessToken, - count: 500, + count: 100, }); added = added.concat(data.added); diff --git a/apps/engine/src/providers/teller/teller-api.ts b/apps/engine/src/providers/teller/teller-api.ts index 02be8473c7..7d629aa0e5 100644 --- a/apps/engine/src/providers/teller/teller-api.ts +++ b/apps/engine/src/providers/teller/teller-api.ts @@ -60,7 +60,7 @@ export class TellerApi { `/accounts/${accountId}/transactions`, accessToken, { - count: latest ? 500 : count, + count: latest ? 100 : count, }, ); diff --git a/packages/jobs/src/transactions/manual-sync.ts b/packages/jobs/src/transactions/manual-sync.ts index ed8f231933..da3b9eda3a 100644 --- a/packages/jobs/src/transactions/manual-sync.ts +++ b/packages/jobs/src/transactions/manual-sync.ts @@ -45,7 +45,6 @@ client.defineJob({ accountId: account.account_id, accountType: getClassification(account.type), accessToken: account.bank_connection?.access_token, - latest: true, }); const formattedTransactions = transactions.data?.map((transaction) => {