Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed May 21, 2023
1 parent 0befd79 commit 0ac8cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests_helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ interface QueryRangeResponse<StreamType extends Record<string, string>> {
}

export class LokiClient {
static client = got.extend({
public static client = got.extend({
prefixUrl: process.env.LOKI_HOST!,
username: process.env.LOKI_USERNAME!,
password: process.env.LOKI_PASSWORD!,
})

static getLogs(query: string) {
public static getLogs(query: string) {
return this.client
.get('loki/api/v1/query', { searchParams: { query, limit: 10 } })
.json<QueryRangeResponse<any>>()
Expand Down

0 comments on commit 0ac8cab

Please sign in to comment.