moving only users that are banned

This commit is contained in:
Miodec 2021-08-16 20:08:37 +01:00
parent 2dde882c4f
commit 8b8c9ddb87

View file

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