mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-04 04:26:54 +08:00
need to get data
This commit is contained in:
parent
e3aa496ad9
commit
82f696c2a4
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ db.collection("leaderboards")
|
|||
.get()
|
||||
.then((leaderboardsSnapshot) => {
|
||||
leaderboardsSnapshot.forEach((lbDoc) => {
|
||||
let newLb = new Leaderboard(lbDoc);
|
||||
let newLb = new Leaderboard(lbDoc.data());
|
||||
newLb.save();
|
||||
});
|
||||
});
|
||||
|
@ -88,7 +88,7 @@ db.collection("bot-commands")
|
|||
.get()
|
||||
.then((botCommandsSnapshot) => {
|
||||
botCommandsSnapshot.forEach((bcDoc) => {
|
||||
let newBotCommand = new BotCommand(bcDoc);
|
||||
let newBotCommand = new BotCommand(bcDoc.data());
|
||||
newBotCommand.save();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue