From faaeff6f9a42529e703a2e8a346e8a532b5ea19a Mon Sep 17 00:00:00 2001 From: Lukas Olson Date: Thu, 11 Feb 2021 14:26:25 -0700 Subject: [PATCH] Remove unnecessary get calls --- .../data_enhanced/server/search/session/session_service.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/plugins/data_enhanced/server/search/session/session_service.ts b/x-pack/plugins/data_enhanced/server/search/session/session_service.ts index ef6b6115980cc..c95c58a8dc06b 100644 --- a/x-pack/plugins/data_enhanced/server/search/session/session_service.ts +++ b/x-pack/plugins/data_enhanced/server/search/session/session_service.ts @@ -334,7 +334,6 @@ export class SearchSessionService expires: Date ) { this.logger.debug(`extend | ${sessionId}`); - await this.get(deps, user, sessionId); // Verify correct user return this.update(deps, user, sessionId, { expires: expires.toISOString() }); } @@ -344,7 +343,6 @@ export class SearchSessionService sessionId: string ) => { this.logger.debug(`delete | ${sessionId}`); - await this.get(deps, user, sessionId); // Verify correct user return this.update(deps, user, sessionId, { status: SearchSessionStatus.CANCELLED, });