Update app.js
Browse files
app.js
CHANGED
@@ -104,7 +104,7 @@ app.get('/api/getall/:symbol', async (req, res) => {
|
|
104 |
const quote = await yahooFinance.quoteSummary(symbol, queryOptions);
|
105 |
res.json(quote);
|
106 |
} catch (error) {
|
107 |
-
res.status(500).json({ message: 'Error fetching summary data
|
108 |
}
|
109 |
})
|
110 |
|
|
|
104 |
const quote = await yahooFinance.quoteSummary(symbol, queryOptions);
|
105 |
res.json(quote);
|
106 |
} catch (error) {
|
107 |
+
res.status(500).json({ message: 'Error fetching summary data:', error });
|
108 |
}
|
109 |
})
|
110 |
|