mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
Revert "not sending key data when not needed"
Key data is needed to validate test
This reverts commit 2a7eab75be
.
This commit is contained in:
parent
a5136dacc1
commit
389fe63a49
|
@ -34,10 +34,12 @@ const RESULT_SCHEMA = joi
|
|||
keyConsistency: joi.number().required(),
|
||||
keyDuration: joi
|
||||
.alternatives()
|
||||
.try(joi.array().items(joi.number()), joi.string().valid("toolong")),
|
||||
.try(joi.array().items(joi.number()), joi.string().valid("toolong"))
|
||||
.required(),
|
||||
keySpacing: joi
|
||||
.alternatives()
|
||||
.try(joi.array().items(joi.number()), joi.string().valid("toolong")),
|
||||
.try(joi.array().items(joi.number()), joi.string().valid("toolong"))
|
||||
.required(),
|
||||
lang: joi.string(),
|
||||
language: joi.string().required(),
|
||||
lazyMode: joi.boolean().required(),
|
||||
|
|
|
@ -1208,11 +1208,6 @@ function buildCompletedEvent(difficultyFailed: boolean): CompletedEvent {
|
|||
afkDuration: undefined,
|
||||
};
|
||||
|
||||
if (Config.mode !== "time") {
|
||||
delete completedEvent.keySpacing;
|
||||
delete completedEvent.keyDuration;
|
||||
}
|
||||
|
||||
// stats
|
||||
const stats = TestStats.calculateStats();
|
||||
if (stats.time % 1 != 0 && Config.mode !== "time") {
|
||||
|
|
Loading…
Reference in a new issue