Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit c3cb80a

Browse files
author
vikasrohit
committedJul 27, 2016
AS#159623706487509, Remove email subscription logic on members app for landing page after activation
-- removed redundant logic as it is now handled by preferences services by listening for user activation event.
·
v1.3.41.1.0
1 parent 268d7f8 commit c3cb80a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed
 

‎app/skill-picker/skill-picker.controller.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import _ from 'lodash'
3232
* Activates the controller.
3333
*/
3434
function activate() {
35-
addToMailingList()
3635
initCommunities()
3736
checkCommunityStatus()
3837
}
@@ -138,25 +137,6 @@ import _ from 'lodash'
138137
}
139138
}
140139

141-
function addToMailingList() {
142-
return UserPreferencesService.getEmailPreferences(userProfile).then(function(subscription) {
143-
logger.debug(subscription)
144-
if (!subscription) {
145-
return UserPreferencesService.saveEmailPreferences(userProfile).then(function(resp) {
146-
logger.debug(resp)
147-
}).catch(function(err) {
148-
// no error to user
149-
//TODO some error alert to community admin
150-
logger.debug('error in adding user to member list')
151-
})
152-
}
153-
}).catch(function(err) {
154-
// no error to user
155-
//TODO some error alert to community admin
156-
logger.debug('error in adding user to member list')
157-
})
158-
}
159-
160140
/**
161141
* Persists the user's altered information.
162142
*/

0 commit comments

Comments
 (0)
This repository has been archived.