From 82f696c2a48c1a362a25009371806c492d0ee4d4 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 5 Jun 2021 20:15:35 +0100 Subject: [PATCH] need to get data --- backend/migrate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/migrate.js b/backend/migrate.js index 4780f53ab..b7e13940c 100644 --- a/backend/migrate.js +++ b/backend/migrate.js @@ -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(); }); });