Use internal repository when updating kql-telemetry counts (#93417)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alejandro Fernández Haro 2021-03-08 13:00:41 +00:00 committed by GitHub
parent f4caf8727d
commit 6f66ab7ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ export function registerKqlTelemetryRoute(
},
async (context, request, response) => {
const [{ savedObjects }] = await getStartServices();
const internalRepository = savedObjects.createScopedRepository(request);
const internalRepository = savedObjects.createInternalRepository();
const {
body: { opt_in: optIn },