Skip to content

Commit

Permalink
Remove unnecessary get calls
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Feb 11, 2021
1 parent 1396ff7 commit faaeff6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() });
}

Expand All @@ -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,
});
Expand Down

0 comments on commit faaeff6

Please sign in to comment.