Pass project ID to Stripe API from [slug].tsx

This commit is contained in:
Rucknium
2023-11-13 16:14:13 +00:00
committed by GitHub
parent b17d0846d4
commit 12f5e6f3d8

View File

@@ -184,7 +184,7 @@ export async function getServerSideProps({ params }: { params: any }) {
const crypto = await fetchGetJSONAuthedBTCPay(projects[i].slug)
xmr = await crypto.xmr
btc = await crypto.btc
usd = await fetchGetJSONAuthedStripe()
usd = await fetchGetJSONAuthedStripe(projects[i].slug)
}
stats[projects[i].slug] = { xmr, btc, usd }