Skip to content

Commit 050de03

Browse files
fix copilot
1 parent 902178b commit 050de03

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/server/shared/src/lib/logger/log-cleaner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const SENSITIVE_FIELD_PATTERNS = SENSITIVE_FIELDS.map(
2929
);
3030

3131
const isSensitiveField = (key: string): boolean => {
32-
return SENSITIVE_FIELDS.includes(key.toLowerCase());
32+
return SENSITIVE_FIELDS.some(
33+
(field) => field.toLowerCase() === key.toLowerCase(),
34+
);
3335
};
3436

3537
const redactSensitiveFields = (obj: any, visited = new WeakSet()): any => {

0 commit comments

Comments
 (0)