mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor(LogQueryToFilter): update comment formatting for severity normalization
This commit is contained in:
@@ -34,8 +34,10 @@ const TOP_LEVEL_FIELDS: Set<string> = new Set([
|
||||
"body",
|
||||
]);
|
||||
|
||||
// Severity values stored in the database use title case (e.g. "Error", "Debug").
|
||||
// Normalise user input so that "error" matches "Error", etc.
|
||||
/*
|
||||
* Severity values stored in the database use title case (e.g. "Error", "Debug").
|
||||
* Normalise user input so that "error" matches "Error", etc.
|
||||
*/
|
||||
const SEVERITY_CANONICAL: Record<string, string> = {
|
||||
fatal: "Fatal",
|
||||
error: "Error",
|
||||
|
||||
Reference in New Issue
Block a user