From 93f4928e2050150ebf4332d4ac0e7412008ef375 Mon Sep 17 00:00:00 2001 From: rbhukya Date: Fri, 16 Apr 2021 16:13:16 +0530 Subject: [PATCH] #8 Insights: Error occurring while creating the maps in aptive --- x-pack/plugins/file_upload/server/routes/file_upload.js | 2 ++ x-pack/plugins/maps/server/routes.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/x-pack/plugins/file_upload/server/routes/file_upload.js b/x-pack/plugins/file_upload/server/routes/file_upload.js index 3935d4ca5fe8e..5c6f9810dbe84 100644 --- a/x-pack/plugins/file_upload/server/routes/file_upload.js +++ b/x-pack/plugins/file_upload/server/routes/file_upload.js @@ -14,6 +14,8 @@ export const IMPORT_ROUTE = '/api/fileupload/import'; export const querySchema = schema.maybe( schema.object({ id: schema.nullable(schema.string()), + accountId: schema.string(), + userId: schema.string() }) ); diff --git a/x-pack/plugins/maps/server/routes.js b/x-pack/plugins/maps/server/routes.js index 5feacfee4d4d2..a8013e5dbd645 100644 --- a/x-pack/plugins/maps/server/routes.js +++ b/x-pack/plugins/maps/server/routes.js @@ -535,6 +535,8 @@ export function initRoutes(router, licenseUid, mapConfig, kbnVersion, logger) { validate: { query: schema.object({ indexPatternTitle: schema.string(), + accountId: schema.string(), + userId: schema.string() }), }, },