mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
More loggin
This commit is contained in:
parent
51dd24574a
commit
ba3333303c
1 changed files with 2 additions and 0 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Reference in a new issue