Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jan 14, 2025
1 parent e68739c commit b17d4c3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
FindKnowledgeBaseEntriesResponse,
ELASTIC_AI_ASSISTANT_KNOWLEDGE_BASE_ENTRIES_URL_FIND,
FindKnowledgeBaseEntriesRequestQuery,
API_VERSIONS,
} from '@kbn/elastic-assistant-common';
import type { User } from './auth/types';

Expand Down Expand Up @@ -39,7 +40,7 @@ export const findEntries = async ({
const response = await supertest
.get(route)
.set('kbn-xsrf', 'true')
.set(ELASTIC_HTTP_VERSION_HEADER, '1')
.set(ELASTIC_HTTP_VERSION_HEADER, API_VERSIONS.public.v1)
.send();
if (response.status !== 200) {
throw new Error(
Expand Down Expand Up @@ -78,7 +79,7 @@ export const findEntriesForUser = async ({
.get(route)
.auth(user.username, user.password)
.set('kbn-xsrf', 'true')
.set(ELASTIC_HTTP_VERSION_HEADER, '1')
.set(ELASTIC_HTTP_VERSION_HEADER, API_VERSIONS.public.v1)
.send();
if (response.status !== 200) {
throw new Error(
Expand Down

0 comments on commit b17d4c3

Please sign in to comment.