Skip to content

🐛 Fixed blog setup crashing for falsy email config#11041

Merged
rshbhgrg merged 1 commit into
TryGhost:masterfrom
rshbhgrg:fix-welcome-email-config
Aug 20, 2019
Merged

🐛 Fixed blog setup crashing for falsy email config#11041
rshbhgrg merged 1 commit into
TryGhost:masterfrom
rshbhgrg:fix-welcome-email-config

Conversation

@rshbhgrg
Copy link
Copy Markdown
Contributor

@rshbhgrg rshbhgrg commented Aug 20, 2019

closes #11040

  • In case of falsy sendWelcomeEmail config, the blog setup crashed as the setup method implicitly returned undefined instead of promise. This handles the falsy config correctly by returning a resolved promise and allowing setup to progress.

  • Adds new regression test for blog setup with custom config

@rshbhgrg rshbhgrg force-pushed the fix-welcome-email-config branch from 65de11c to 149d74e Compare August 20, 2019 09:11
@rshbhgrg rshbhgrg requested review from kevinansfield and naz and removed request for naz August 20, 2019 09:13
refs TryGhost#11040

In case of falsy `sendWelcomeEmail` config, the blog setup crashed as the setup method implicitly returned undefined instead of promise. This handles the fasly config correctly.

- Adds regression test for pro config blog setup
@rshbhgrg rshbhgrg force-pushed the fix-welcome-email-config branch from 149d74e to 0c90076 Compare August 20, 2019 09:35
@rshbhgrg rshbhgrg merged commit 1b09ae9 into TryGhost:master Aug 20, 2019
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.

Blog setup crashes on falsy sendWelcomeEmail config

1 participant