More loggin

This commit is contained in:
James Allen 2017-03-23 11:56:46 +00:00
parent 51dd24574a
commit ba3333303c

View file

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