some very old lb entries will have no consistency, or have a '-'

This commit is contained in:
Miodec 2021-06-05 20:21:37 +01:00
parent 82f696c2a4
commit 6ff1c1693c

View file

@ -6,7 +6,7 @@ const leaderboardEntrySchema = new Schema({
wpm: { type: Number },
raw: { type: Number },
acc: { type: Number },
consistency: { type: Number }, //can be null
consistency: { type: {} }, //can be null
mode: { type: String }, //not sure why mode and mode2 are needed
mode2: { type: Number },
timestamp: { type: Date },