Skip to content

Commit

Permalink
[skip ci] run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-run committed Jul 7, 2023
1 parent 006397b commit dcdad4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LogEvent } from "pino"
import { LogEvent } from 'pino'

export interface LoggerConfiguration {
basePath?: string
Expand Down
9 changes: 6 additions & 3 deletions src/loggingRouteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ export const POSTLoggingRouteHandler = async (request: Request): Promise<Respons
const label: unknown = level.label
if (!isValidLoggingLabel(label)) {
// @ts-expect-error TypeScript types are lagging behind a bit
return Response.json({
error: `Invalid label ${label}`,
}, { status: 400 })
return Response.json(
{
error: `Invalid label ${label}`,
},
{ status: 400 },
)
}

const messages: [objOrMsg: unknown, msgOrArgs?: string] = body.messages
Expand Down

0 comments on commit dcdad4d

Please sign in to comment.