mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
check if user exists on recurly callback
This commit is contained in:
@@ -70,6 +70,8 @@ module.exports =
|
||||
return callback(error) if error?
|
||||
User.findById recurlySubscription.account.account_code, (error, user) ->
|
||||
return callback(error) if error?
|
||||
if !user?
|
||||
return callback("no user found")
|
||||
SubscriptionUpdater.syncSubscription recurlySubscription, user?._id, callback
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user