Skip to content

Commit

Permalink
fix: polar typo (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed May 7, 2024
1 parent 06bf264 commit 9d52693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"build": "unbuild",
"stub": "unbuild --stub",
"dev": "esno src/cli.ts",
"test": "vitest",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"prepublishOnly": "nr build",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/polar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function fetchPolarSponsors(token: string): Promise<Sponsorship[]>
privacyLevel: 'PUBLIC',
createdAt: new Date(sub.created_at).toISOString(),
tierName: isActive ? sub.subscription_tier.name : undefined,
monthlyDollars: isActive ? sub.sub.price.price_amount / 100 : -1,
monthlyDollars: isActive ? sub.subscription.price.price_amount / 100 : -1,
}
})
}

0 comments on commit 9d52693

Please sign in to comment.