Skip to content

Commit 248ccb1

Browse files
committed
fix(plugins/community/stock): undefined quoteType
1 parent da3c978 commit 248ccb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/plugins/community/stock/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
1616

1717
//Query API for company informations
1818
console.debug(`metrics/compute/${login}/plugins > stock > querying api for company`)
19-
const {data: {quoteType: {shortName: company}}} = await imports.axios.get("https://yh-finance.p.rapidapi.com/stock/v2/get-profile", {
19+
const {data: {quoteType: {shortName: company} = {shortName:symbol}}} = await imports.axios.get("https://yh-finance.p.rapidapi.com/stock/v2/get-profile", {
2020
params: {symbol, region: "US"},
2121
headers: {"x-rapidapi-key": token},
2222
})

0 commit comments

Comments
 (0)