diff --git a/backend/src/utils/result.ts b/backend/src/utils/result.ts index ddccc2fd3..b6dd0ad5a 100644 --- a/backend/src/utils/result.ts +++ b/backend/src/utils/result.ts @@ -55,6 +55,7 @@ export function buildDbResult( if (ce.incompleteTestSeconds === 0) delete res.incompleteTestSeconds; if (ce.afkDuration === 0) delete res.afkDuration; if (ce.tags.length === 0) delete res.tags; + if (ce.isPb === false) delete res.isPb; if (ce.keySpacingStats === undefined) delete res.keySpacingStats; if (ce.keyDurationStats === undefined) delete res.keyDurationStats; diff --git a/shared-types/types.d.ts b/shared-types/types.d.ts index fbf3e0649..d33aa42c0 100644 --- a/shared-types/types.d.ts +++ b/shared-types/types.d.ts @@ -219,6 +219,7 @@ declare namespace SharedTypes { | "incompleteTests" | "customText" | "quoteLength" + | "isPb" > & { correctChars?: number; // -------------- incorrectChars?: number; // legacy results @@ -239,6 +240,7 @@ declare namespace SharedTypes { tags?: string[]; customText?: CustomText; quoteLength?: number; + isPb?: boolean; } >;