Skip to content

Commit

Permalink
fix: added required parameters in Email notifications channel (#7552)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshbhu committed Jun 22, 2021
1 parent d24b44a commit e3e51f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/amplify-category-notifications/lib/channel-Email.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,13 @@ function validateInputParams(channelInput) {
}

async function disable(context) {
const channelOutput = validateInputParams(context.exeInfo.serviceMeta.output[channelName]);
const params = {
ApplicationId: context.exeInfo.serviceMeta.output.Id,
EmailChannelRequest: {
Enabled: false,
FromAddress: channelOutput.FromAddress,
Identity: channelOutput.Identity,
},
};
spinner.start('Updating Email Channel.');
Expand Down

0 comments on commit e3e51f5

Please sign in to comment.