mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-21 20:01:16 +00:00
Fixing donation package. (#302)
This commit is contained in:
parent
6e61947d03
commit
942afdaf0b
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@ import fetch from "node-fetch";
|
||||||
const donationStatsFile = "src/shared/donation_stats.ts";
|
const donationStatsFile = "src/shared/donation_stats.ts";
|
||||||
|
|
||||||
const USDtoEURUrl =
|
const USDtoEURUrl =
|
||||||
"https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/usd/eur.json";
|
"https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json";
|
||||||
|
|
||||||
const liberaPayUrl = "https://liberapay.com/Lemmy/public.json";
|
const liberaPayUrl = "https://liberapay.com/Lemmy/public.json";
|
||||||
const openCollectiveUrl = "https://opencollective.com/lemmy.json";
|
const openCollectiveUrl = "https://opencollective.com/lemmy.json";
|
||||||
const patreonUrl = "https://www.patreon.com/api/campaigns/2692831";
|
const patreonUrl = "https://www.patreon.com/api/campaigns/2692831";
|
||||||
|
|
||||||
const usdToEurRes = await fetch(USDtoEURUrl);
|
const usdToEurRes = await fetch(USDtoEURUrl);
|
||||||
const usdToEur = (await usdToEurRes.json()).eur;
|
const usdToEur = (await usdToEurRes.json()).usd.eur;
|
||||||
|
|
||||||
// In weekly USD
|
// In weekly USD
|
||||||
const liberaPayRes = await fetch(liberaPayUrl);
|
const liberaPayRes = await fetch(liberaPayUrl);
|
||||||
|
|
Loading…
Reference in a new issue