From 07f69c246b8217bebb2f7dc696ab195e9fe9720a Mon Sep 17 00:00:00 2001 From: Fawaz Ahmed Date: Fri, 1 Mar 2024 18:41:13 +0530 Subject: [PATCH] Fix currency-api link --- 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();