mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix cancel subscription on delete user
This commit is contained in:
parent
505675803b
commit
7e64b88fcf
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ module.exports =
|
|||
(cb)->
|
||||
ProjectDeleter.deleteUsersProjects user._id, cb
|
||||
(cb)->
|
||||
SubscriptionHandler.cancelSubscription user._id, cb
|
||||
SubscriptionHandler.cancelSubscription user, cb
|
||||
(cb)->
|
||||
user.remove cb
|
||||
], (err)->
|
||||
|
|
|
@ -49,5 +49,5 @@ describe "UserDeleter", ->
|
|||
|
||||
it "should unsubscribe the user", (done)->
|
||||
@UserDeleter.deleteUser @user._id, (err)=>
|
||||
@SubscriptionHandler.cancelSubscription.calledWith(@user._id).should.equal true
|
||||
@SubscriptionHandler.cancelSubscription.calledWith(@user).should.equal true
|
||||
done()
|
||||
|
|
Loading…
Reference in a new issue