From 03e1ccdc744bb83666ce039117e5626bc97d8eec Mon Sep 17 00:00:00 2001 From: Fawaz Ahmed Date: Sat, 2 Mar 2024 21:54:29 +0530 Subject: [PATCH] Fix currency-api link (#1071) --- src/main/Extensions/CurrencyConversion/CurrencyConversion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Extensions/CurrencyConversion/CurrencyConversion.ts b/src/main/Extensions/CurrencyConversion/CurrencyConversion.ts index febd71f1f..8f0a345c7 100644 --- a/src/main/Extensions/CurrencyConversion/CurrencyConversion.ts +++ b/src/main/Extensions/CurrencyConversion/CurrencyConversion.ts @@ -138,7 +138,7 @@ export class CurrencyConversion implements Extension { private async setRate(currency: string): Promise { const response = await this.net.fetch( - `https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/${currency}.json`, + `https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/${currency}.json`, ); const responseJson = await response.json();