mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix stocks undefined bug
This commit is contained in:
@@ -79,7 +79,7 @@ module.exports = class StocksCommand extends Command {
|
||||
interval: '1min',
|
||||
apikey: ALPHA_VANTAGE_KEY
|
||||
});
|
||||
if (body['Error Message']) return null;
|
||||
if (body['Error Message'] || !body['Time Series (1min)']) return null;
|
||||
const data = Object.values(body['Time Series (1min)'])[0];
|
||||
return {
|
||||
symbol,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "126.6.0",
|
||||
"version": "126.6.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user