mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
fix: fixing a fix where a previuos fix didnt fix the issue
completed event doesnt have isPb property, so the delete didnt work
This commit is contained in:
parent
a11314f11c
commit
020eb7b44e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue