mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user