From ba3333303cde4c94bc748a6db8abaccdd98a0f95 Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 23 Mar 2017 11:56:46 +0000 Subject: [PATCH] More loggin --- server-ce/migrations/5_remove_holding_accounts.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server-ce/migrations/5_remove_holding_accounts.coffee b/server-ce/migrations/5_remove_holding_accounts.coffee index 687b1ee3b7..3e45d41605 100644 --- a/server-ce/migrations/5_remove_holding_accounts.coffee +++ b/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) ->