Skip to content

Commit

Permalink
fix: fixing a fix where a previuos fix didnt fix the issue
Browse files Browse the repository at this point in the history
completed event doesnt have isPb property, so the delete didnt work
  • Loading branch information
Miodec committed Feb 7, 2024
1 parent a11314f commit 020eb7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/utils/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 020eb7b

Please sign in to comment.