From 020eb7b44eec95ea79ffaac9333955077fd18aed Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 7 Feb 2024 09:51:31 +0100 Subject: [PATCH] fix: fixing a fix where a previuos fix didnt fix the issue completed event doesnt have isPb property, so the delete didnt work --- backend/src/utils/result.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/utils/result.ts b/backend/src/utils/result.ts index b6dd0ad5a..7e3e9414b 100644 --- a/backend/src/utils/result.ts +++ b/backend/src/utils/result.ts @@ -55,10 +55,11 @@ 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; + if (res.isPb === false) delete res.isPb; + return res; }