Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the setup function as it is no longer needed #2

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

joshwnj
Copy link
Member

@joshwnj joshwnj commented Feb 8, 2021

Fixes #1

What & Why

  • Remove the setup function.
    • This was from an earlier implementation, but is not used anymore.

@joshwnj joshwnj merged commit fc91865 into main Feb 8, 2021
@joshwnj joshwnj deleted the GH-1-remove-setup branch February 8, 2021 22:38
@joshwnj joshwnj mentioned this pull request Feb 8, 2021
Copy link

@nicksp nicksp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and legit now 👍

Comment on lines -7 to -21
setup: (allOptions, ) => {
// set up providers

Object.keys(channelMap).forEach(key => {
const providerKey = channelMap[key]
const providerOptions = allOptions[providerKey]

if (!provider) {
strapi.logger.error(`Unknown email provider: ${providerKey}. Using console instead.`)
}

channels[key] = providerKey || allOptions.console
})
},

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, I couldn't find it's used anywhere in the client, so looking good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

channelMap is missing
2 participants