chore: code formatting
This commit is contained in:
@@ -417,13 +417,13 @@ function quit(reason) {
|
||||
info("Status", "complete")
|
||||
info("MIME type", mime)
|
||||
const buffer = {
|
||||
_content:null,
|
||||
_content: null,
|
||||
get content() {
|
||||
return this._content
|
||||
},
|
||||
set content(value) {
|
||||
this._content = Buffer.isBuffer(value) ? value : Buffer.from(typeof value === "object" ? JSON.stringify(value) : `${value}`)
|
||||
}
|
||||
},
|
||||
}
|
||||
buffer.content = rendered
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
|
||||
|
||||
//Query API for company informations
|
||||
console.debug(`metrics/compute/${login}/plugins > stock > querying api for company`)
|
||||
const {data: {quoteType: {shortName: company} = {shortName:symbol}}} = await imports.axios.get("https://yh-finance.p.rapidapi.com/stock/v2/get-profile", {
|
||||
const {data: {quoteType: {shortName: company} = {shortName: symbol}}} = await imports.axios.get("https://yh-finance.p.rapidapi.com/stock/v2/get-profile", {
|
||||
params: {symbol, region: "US"},
|
||||
headers: {"x-rapidapi-key": token},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user