mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
migration updates
This commit is contained in:
parent
6aec350119
commit
f5f12a83ce
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ const admin = require("firebase-admin");
|
|||
// const { Leaderboard } = require("./models/leaderboard");
|
||||
// const { BotCommand } = require("./models/bot-command");
|
||||
|
||||
const serviceAccount = require("../functions/serviceAccountKey_live.json");
|
||||
const serviceAccount = require("./credentials/serviceAccountKey.json");
|
||||
|
||||
admin.initializeApp({
|
||||
credential: admin.credential.cert(serviceAccount),
|
||||
|
@ -69,7 +69,7 @@ async function migrateUsers() {
|
|||
averageCompletionTime = migrationStats.averageCompletionTime;
|
||||
} catch (e) {}
|
||||
let querySnapshot;
|
||||
let limit = 1;
|
||||
let limit = 1000;
|
||||
do {
|
||||
console.log("starting another loop, getting users");
|
||||
if (lastId) {
|
||||
|
|
Loading…
Reference in a new issue