Skip to content

Commit

Permalink
Fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinc committed May 26, 2024
1 parent 50a55d3 commit 09c66cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/service-iq-enterprise/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,13 @@ export class Plugin<Meta extends object = any>
password?: string,
) => {
const axios: Axios = await this.getAxios(hostname, username, password);
let resp: AxiosResponse<APIServiceUsageResponse>;
let query: Record<string, string> = {
const query: Record<string, string> = {
month: `${year}${month < 10 ? `0${month}` : month}`,
};
if (Tools.isNumber(day)) {
query.day = day.toFixed(0);
}
resp = await axios.get<APIServiceUsageResponse>(
const resp = await axios.get<APIServiceUsageResponse>(
`/api/portal/usage/${encodeURIComponent(
id,
)}?${Object.keys(query)
Expand Down

0 comments on commit 09c66cf

Please sign in to comment.