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