Skip to content
Snippets Groups Projects
Commit 21b15c8c authored by James Allen's avatar James Allen
Browse files

More loggin

parent ebb9a6c7
No related branches found
No related tags found
No related merge requests found
...@@ -64,8 +64,10 @@ module.exports = HoldingAccountMigration = ...@@ -64,8 +64,10 @@ module.exports = HoldingAccountMigration =
HoldingAccountMigration.findHoldingAccounts (error, users) -> HoldingAccountMigration.findHoldingAccounts (error, users) ->
throw error if error? throw error if error?
console.log "[Got #{users.length} holding accounts]" console.log "[Got #{users.length} holding accounts]"
i = 0
jobs = users.map (u) -> jobs = users.map (u) ->
(cb) -> (cb) ->
console.log "[Removing user #{i++}/#{users.length}]"
HoldingAccountMigration.deleteUser u._id, (error) -> HoldingAccountMigration.deleteUser u._id, (error) ->
return cb(error) if error? return cb(error) if error?
HoldingAccountMigration.deleteUserProjects u._id, (error) -> HoldingAccountMigration.deleteUserProjects u._id, (error) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment