mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
don't migrate already-migrated users
This commit is contained in:
@@ -9,6 +9,11 @@ db.users.find().forEach(function(user){
|
|||||||
return; // need to figure out how to delete these buggers if they don't have an id to delete from
|
return; // need to figure out how to delete these buggers if they don't have an id to delete from
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!!user.idLists) {
|
||||||
|
print("User " + user._id + " has already been migrated")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (user._id.indexOf("$") === 0) {
|
if (user._id.indexOf("$") === 0) {
|
||||||
print("User id starts with $ (" + user._id + ")")
|
print("User id starts with $ (" + user._id + ")")
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user