Skip to content

Commit

Permalink
Make sure the env variable is an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
KeesCBakker committed Apr 22, 2024
1 parent 4277cab commit 889516f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grafana.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ module.exports = (robot) => {
let apiPanelId = false;
let pname = false;
const query = {
width: process.env.HUBOT_GRAFANA_DEFAULT_WIDTH || 1000,
height: process.env.HUBOT_GRAFANA_DEFAULT_HEIGHT || 500,
width: parseInt(process.env.HUBOT_GRAFANA_DEFAULT_WIDTH) || 1000,
height: parseInt(process.env.HUBOT_GRAFANA_DEFAULT_HEIGHT) || 500,
tz: process.env.HUBOT_GRAFANA_DEFAULT_TIME_ZONE || '',
orgId: process.env.HUBOT_GRAFANA_ORG_ID || '',
apiEndpoint: process.env.HUBOT_GRAFANA_API_ENDPOINT || 'd-solo',
Expand Down

0 comments on commit 889516f

Please sign in to comment.