Add a method to explicitely refresh subscription feature

This commit is contained in:
Shane Kilkelly 2017-12-07 16:28:07 +00:00
parent 4e86a03b46
commit 3adbc52089

View file

@ -62,6 +62,9 @@ module.exports = SubscriptionUpdater =
invited_emails: email invited_emails: email
}, callback }, callback
refreshSubscription: (user_id, callback=(err)->) ->
SubscriptionUpdater._setUsersMinimumFeatures user_id, callback
deleteSubscription: (subscription_id, callback = (error) ->) -> deleteSubscription: (subscription_id, callback = (error) ->) ->
SubscriptionLocator.getSubscription subscription_id, (err, subscription) -> SubscriptionLocator.getSubscription subscription_id, (err, subscription) ->
return callback(err) if err? return callback(err) if err?