From 1c205c6ca7cb3c124eff2cefd91a594a93509a48 Mon Sep 17 00:00:00 2001 From: Gidi Meir Morris Date: Thu, 18 Jun 2020 15:05:09 +0100 Subject: [PATCH] reverted change in alerting --- .../plugins/alerts/server/saved_objects/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/x-pack/plugins/alerts/server/saved_objects/index.ts b/x-pack/plugins/alerts/server/saved_objects/index.ts index 7d620adf895e4..c98d9bcbd9ae5 100644 --- a/x-pack/plugins/alerts/server/saved_objects/index.ts +++ b/x-pack/plugins/alerts/server/saved_objects/index.ts @@ -12,6 +12,13 @@ export function setupSavedObjects( savedObjects: SavedObjectsServiceSetup, encryptedSavedObjects: EncryptedSavedObjectsPluginSetup ) { + savedObjects.registerType({ + name: 'alert', + hidden: true, + namespaceType: 'single', + mappings: mappings.alert, + }); + // Encrypted attributes encryptedSavedObjects.registerType({ type: 'alert', @@ -23,11 +30,4 @@ export function setupSavedObjects( 'updatedBy', ]), }); - - savedObjects.registerType({ - name: 'alert', - hidden: true, - namespaceType: 'single', - mappings: mappings.alert, - }); }