chore: code formatting

This commit is contained in:
github-actions[bot]
2022-12-18 23:22:52 +00:00
parent 7924b609f8
commit a1fe86bd0d
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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},
})