From 842be6a774e74b71c2e5be24cb5fe925da0222c0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 25 Apr 2024 00:33:58 -0400 Subject: [PATCH] Fix --- commands/edit-number/currency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-number/currency.js b/commands/edit-number/currency.js index 03415bcf..5fec4dce 100644 --- a/commands/edit-number/currency.js +++ b/commands/edit-number/currency.js @@ -63,6 +63,6 @@ module.exports = class CurrencyCommand extends Command { async fetchRate(base, target) { const { body } = await request .get(`https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/${base}.json`); - return body[target]; + return body[base][target]; } };