This commit is contained in:
Dragon Fire
2024-04-25 00:33:03 -04:00
parent 0a0cc4c621
commit 354bc9f62f
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ 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}/${target}.json`);
.get(`https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/${base}.json`);
return body[target];
}
};