This commit is contained in:
Dragon Fire
2024-04-25 00:33:58 -04:00
parent 354bc9f62f
commit 842be6a774
+1 -1
View File
@@ -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];
}
};