Skip to content

Commit

Permalink
Merge pull request #111 from JingleJam/develop
Browse files Browse the repository at this point in the history
Add new donation count offset
  • Loading branch information
no1mann authored Dec 1, 2024
2 parents bbfe415 + ee4f948 commit d956db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions workers/tiltify-cache/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async function getSummaryData(env: Env): Promise<ApiResponse> {

// Get donation counts from Yogscast API
apiResponse.donations.count = apiResponse.collections.redeemed || yogscastAPI?.donations || 0;
apiResponse.donations.count += env.DONATION_DIFFERENCE;

/*
Campaigns:
Expand Down
4 changes: 2 additions & 2 deletions workers/tiltify-cache/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d956db2

Please sign in to comment.