Skip to content

Commit

Permalink
Fixing migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Oct 27, 2020
1 parent 7ab5967 commit d5d9265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/actions/server/saved_objects/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function renameCasesConfigurationObject(
const addHasAuthConfigurationObject = (
doc: SavedObjectUnsanitizedDoc<RawAction>
): SavedObjectUnsanitizedDoc<RawAction> => {
if (doc.attributes.actionTypeId !== '.email') {
if (doc.attributes.actionTypeId !== '.email' && doc.attributes.actionTypeId !== '.webhook') {
return doc;
}
const hasAuth = !!doc.attributes.secrets.user || !!doc.attributes.secrets.password;
Expand Down

0 comments on commit d5d9265

Please sign in to comment.