diff --git a/workers/tiltify-cache/src/api.ts b/workers/tiltify-cache/src/api.ts index 014535a..fd499ff 100644 --- a/workers/tiltify-cache/src/api.ts +++ b/workers/tiltify-cache/src/api.ts @@ -83,6 +83,7 @@ async function getSummaryData(env: Env): Promise { // Get donation counts from Yogscast API apiResponse.donations.count = apiResponse.collections.redeemed || yogscastAPI?.donations || 0; + apiResponse.donations.count += env.DONATION_DIFFERENCE; /* Campaigns: diff --git a/workers/tiltify-cache/wrangler.toml b/workers/tiltify-cache/wrangler.toml index cb696f1..b7d09b3 100644 --- a/workers/tiltify-cache/wrangler.toml +++ b/workers/tiltify-cache/wrangler.toml @@ -29,7 +29,7 @@ new_classes = ["GraphData"] YEAR = 2024 COLLECTIONS_AVAILABLE = 100000 DOLLAR_OFFSET = 5747814.82 -DONATION_DIFFERENCE = 0 +DONATION_DIFFERENCE = 120 CONVERSION_RATE = 1.33 CAUSE_SLUG = "jingle-jam" FUNDRAISER_SLUG = "jingle-jam-2024" @@ -59,7 +59,7 @@ bindings = [ YEAR = 2024 COLLECTIONS_AVAILABLE = 100000 DOLLAR_OFFSET = 5747814.82 -DONATION_DIFFERENCE = 0 +DONATION_DIFFERENCE = 120 CONVERSION_RATE = 1.33 CAUSE_SLUG = "jingle-jam" FUNDRAISER_SLUG = "jingle-jam-2024"