Skip to content

Commit aa69c6d

Browse files
committed
fix: coerce type of header
1 parent 9417acf commit aa69c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default (extendedPinoOptions?: ExtendedPinoOptions): PinoLambdaLogger =>
130130
Object.keys(event.headers).forEach((header) => {
131131
if (header.toLowerCase().startsWith(CORRELATION_HEADER)) {
132132
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
133-
ctx[header] = event.headers![header];
133+
ctx[header] = event.headers![header] as string;
134134
}
135135
});
136136
}

0 commit comments

Comments
 (0)