diff --git a/.github/workflows/pledge-signer-sync/pledge-sync.js b/.github/workflows/pledge-signer-sync/pledge-sync.js index 2e70105b1..eea1cdab4 100644 --- a/.github/workflows/pledge-signer-sync/pledge-sync.js +++ b/.github/workflows/pledge-signer-sync/pledge-sync.js @@ -22,8 +22,8 @@ if (!GALXE_ACCESS_TOKEN || !FIRESTORE_USER || !FIRESTORE_PASSWORD) { process.exit(1) } -// Limit sync range to last 4 days ( 2 days from last sync + 2 days from now ) -const TARGET_DATE = new Date(Date.now() - 4 * 24 * 60 * 60_000) +// Limit sync range to last 2 days (1 day from the last sync + 1 day margin) +const TARGET_DATE = new Date(Date.now() - 2 * 24 * 60 * 60_000) const wait = (ms) => new Promise((r) => { diff --git a/.github/workflows/sync-pledge.yml b/.github/workflows/sync-pledge.yml index 7aa175377..622a4189a 100644 --- a/.github/workflows/sync-pledge.yml +++ b/.github/workflows/sync-pledge.yml @@ -2,7 +2,7 @@ name: Sync pledge on: schedule: - - cron: "0 0 */3 * *" + - cron: "0 0 * * *" workflow_dispatch: jobs: