Skip to content

Commit

Permalink
ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Feb 3, 2021
1 parent 76ba1ee commit 51cfd6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/server/search/search_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export class SearchService implements Plugin<ISearchSetup, ISearchStart> {

private deleteSession = async (deps: SearchStrategyDependencies, sessionId: string) => {
this.cancelSessionSearches(deps, sessionId);
const response = await deps.searchSessionsClient.delete(sessionId);
return deps.searchSessionsClient.delete(sessionId);
};

private extendSession = async (
Expand Down
1 change: 1 addition & 0 deletions src/plugins/data/server/search/session/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export function createSearchSessionsClientMock<T = unknown>(): jest.Mocked<
update: jest.fn(),
cancel: jest.fn(),
extend: jest.fn(),
delete: jest.fn(),
};
}

0 comments on commit 51cfd6a

Please sign in to comment.