Remove deprecated removeEmailInviteFromGroup

This commit is contained in:
James Allen 2018-06-11 14:19:47 +01:00
parent 59688efb56
commit b716f59442
2 changed files with 0 additions and 11 deletions

View file

@ -42,10 +42,6 @@ module.exports = SubscriptionGroupHandler =
removeUserFromGroup: (adminUser_id, userToRemove_id, callback)-> removeUserFromGroup: (adminUser_id, userToRemove_id, callback)->
SubscriptionUpdater.removeUserFromGroup adminUser_id, userToRemove_id, callback SubscriptionUpdater.removeUserFromGroup adminUser_id, userToRemove_id, callback
removeEmailInviteFromGroup: (adminUser_id, email, callback) ->
SubscriptionUpdater.removeEmailInviteFromGroup adminUser_id, email, callback
replaceUserReferencesInGroups: (oldId, newId, callback) -> replaceUserReferencesInGroups: (oldId, newId, callback) ->
Subscription.update {admin_id: oldId}, {admin_id: newId}, (error) -> Subscription.update {admin_id: oldId}, {admin_id: newId}, (error) ->
callback(error) if error? callback(error) if error?

View file

@ -47,13 +47,6 @@ module.exports = SubscriptionUpdater =
return callback(err) return callback(err)
FeaturesUpdater.refreshFeatures user_id, callback FeaturesUpdater.refreshFeatures user_id, callback
removeEmailInviteFromGroup: (adminUser_id, email, callback)->
Subscription.update {
admin_id: adminUser_id
}, "$pull": {
invited_emails: email
}, 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?