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, - }); }