Skip to content

Commit

Permalink
hotfix: fetchSession private 하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteKiwi committed Sep 23, 2022
1 parent a56a3d3 commit bb4d114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "the-camp",
"version": "2.0.0",
"version": "2.0.1",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "esm/index.js",
Expand Down
4 changes: 1 addition & 3 deletions src/client/the-camp.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ import { TheCampService } from '../services/the-camp';

export class TheCampClient {
private readonly theCampService: TheCampService = new TheCampService();

constructor(private readonly credential: Credential) {}

private session?: TheCampSession;
async fetchSession(): Promise<TheCampSession> {
private async fetchSession(): Promise<TheCampSession> {
if (!this.session) {
this.session = await this.theCampService.login(this.credential);
}

return this.session;
}

Expand Down

0 comments on commit bb4d114

Please sign in to comment.