mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Clear currency conversion cache every 30 minutes
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports = class CurrencyCommand extends Command {
|
|||||||
compact: 'ultra'
|
compact: 'ultra'
|
||||||
});
|
});
|
||||||
this.rates.set(query, body[query]);
|
this.rates.set(query, body[query]);
|
||||||
|
setTimeout(() => this.rates.delete(query), 1.8e+6);
|
||||||
return body[query];
|
return body[query];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user