Skip to content

Commit

Permalink
chore(deps): update dependency eslint-config-love to v56
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangalsterer committed Jul 14, 2024
1 parent d013303 commit 857a7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"devDependencies": {
"@jest/globals": "29.7.0",
"@types/jest": "29.5.12",
"eslint-config-love": "54.0.0",
"eslint-config-love": "56.0.0",
"eslint-plugin-jest": "28.6.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"jest": "29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/pgPromisePrometheusExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class PgPromisePrometheusExporter {
host: event.ctx.client.host + ':' + event.ctx.client.port.toString(),
database: event.ctx.client.database,
command: event.result.command,
status: this.getStatus(event.ctx.ctx.success)
status: PgPromisePrometheusExporter.getStatus(event.ctx.ctx.success)
},
this.options.defaultLabels
),
Expand Down Expand Up @@ -175,7 +175,7 @@ export class PgPromisePrometheusExporter {
}
}

private getStatus(success: boolean | undefined): string {
static getStatus(success: boolean | undefined): string {
let status = 'ERROR'
if (success ?? false) {
status = 'ERROR'
Expand Down

0 comments on commit 857a7f2

Please sign in to comment.