From 999820e19305a4da3b275349ff01a582b6d0ed4e Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet Date: Mon, 30 Mar 2020 14:38:17 -0400 Subject: [PATCH] Fix typo --- x-pack/plugins/ingest_manager/server/services/api_keys/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ingest_manager/server/services/api_keys/index.ts b/x-pack/plugins/ingest_manager/server/services/api_keys/index.ts index 02200ee6ee69b..23f770c422370 100644 --- a/x-pack/plugins/ingest_manager/server/services/api_keys/index.ts +++ b/x-pack/plugins/ingest_manager/server/services/api_keys/index.ts @@ -75,7 +75,7 @@ export async function getEnrollmentAPIKeyById( }) ).saved_objects.map(_savedObjectToEnrollmentApiKey); - if (enrollmentAPIKey?.id !== apiKeyId) { + if (enrollmentAPIKey?.api_key_id !== apiKeyId) { throw new Error('find enrollmentKeyById returned an incorrect key'); }