James Allen 9 år sedan
förälder
incheckning
ba3333303c
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      server-ce/migrations/5_remove_holding_accounts.coffee

+ 2 - 0
server-ce/migrations/5_remove_holding_accounts.coffee

@@ -64,8 +64,10 @@ module.exports = HoldingAccountMigration =
 		HoldingAccountMigration.findHoldingAccounts (error, users) ->
 			throw error if error?
 			console.log "[Got #{users.length} holding accounts]"
+			i = 0
 			jobs = users.map (u) ->
 				(cb) ->
+					console.log "[Removing user #{i++}/#{users.length}]"
 					HoldingAccountMigration.deleteUser u._id, (error) ->
 						return cb(error) if error?
 						HoldingAccountMigration.deleteUserProjects u._id, (error) ->