stock patch changes

This commit is contained in:
John Facey
2022-06-22 15:52:50 -05:00
parent 988ea73a5b
commit 539f96702e

View File

@@ -16,6 +16,7 @@ let linkFlayerCats = [];
var apiKey = process.env.KEY;
var userBase = process.env.BASE;
var userTable = process.env.TABLE
var stockKey = process.env.STOCK_KEY;
token = process.env.TOKEN;
var base = new Airtable({
@@ -268,7 +269,7 @@ exports.getSlang = async function (question) {
exports.getStock = async function (stock) {
var answerURL = `https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=${stock}&interval=5min&apikey=demo`;
var answerURL = `https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=${stock}&interval=5min&apikey=${stockKey}`;
console.log(answerURL);
stockData = {
symbol: `Not Found`,