mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 15:08:45 +08:00
moving only users that are banned
This commit is contained in:
parent
2dde882c4f
commit
8b8c9ddb87
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ async function migrateUsers() {
|
|||
let lastSnapshot = await db.collection("users").doc(lastId).get();
|
||||
querySnapshot = await db
|
||||
.collection("users")
|
||||
// .where("name", "==", "Miodec")
|
||||
.where("banned", "==", true)
|
||||
.orderBy("name")
|
||||
.startAfter(lastSnapshot)
|
||||
.limit(limit)
|
||||
|
@ -84,7 +84,7 @@ async function migrateUsers() {
|
|||
} else {
|
||||
querySnapshot = await db
|
||||
.collection("users")
|
||||
// .where("name", "==", "Miodec")
|
||||
.where("banned", "==", true)
|
||||
.orderBy("name")
|
||||
.limit(limit)
|
||||
.get();
|
||||
|
|
Loading…
Reference in a new issue