mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
fixed a bug where leaderboards would override eachother when going to history
This commit is contained in:
parent
678d4932df
commit
ee98123772
1 changed files with 5 additions and 1 deletions
|
|
@ -993,7 +993,11 @@ exports.scheduledFunctionCrontab = functions.pubsub
|
|||
admin
|
||||
.firestore()
|
||||
.collection("leaderboards_history")
|
||||
.doc(`${t.getDate()}_${t.getMonth()}_${t.getFullYear()}`)
|
||||
.doc(
|
||||
`${t.getDate()}_${t.getMonth()}_${t.getFullYear()}_${
|
||||
lbdata.mode
|
||||
}_${lbdata.mode2}`
|
||||
)
|
||||
.set(lbdata);
|
||||
admin.firestore().collection("leaderboards").doc(doc.id).set(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue