[ML] Fixing field caps wrapper endpoint (#77546)
This commit is contained in:
parent
89af7e676d
commit
b162cca68d
|
@ -40,7 +40,7 @@ export function indicesRoutes({ router, mlLicense }: RouteInitialization) {
|
|||
requestFields !== undefined && Array.isArray(requestFields)
|
||||
? requestFields.join(',')
|
||||
: '*';
|
||||
const { body } = await client.asInternalUser.fieldCaps({ index, fields });
|
||||
const { body } = await client.asCurrentUser.fieldCaps({ index, fields });
|
||||
return response.ok({ body });
|
||||
} catch (e) {
|
||||
return response.customError(wrapError(e));
|
||||
|
|
Loading…
Reference in a new issue