need to get data

This commit is contained in:
Miodec 2021-06-05 20:15:35 +01:00
parent e3aa496ad9
commit 82f696c2a4

View file

@ -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();
});
});