Skip to content

Commit

Permalink
Merge pull request #2 from hangyeol0531/fix/the-camp-1
Browse files Browse the repository at this point in the history
카페 가입하기 부분에 정렬번호 추가
  • Loading branch information
WhiteKiwi authored Sep 21, 2022
2 parents 74ea6af + d42e2e9 commit 189094e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/the-camp.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class TheCampClient {
if (soldier.hasCafe) continue;
// 가입 안되어있으면 가입시켜~~
await this.theCampService.registerCafe(
{ ...soldierInfo, 입영부대TypeCode: soldier.입영부대TypeCode },
{ ...soldierInfo, 정렬번호: soldier.정렬번호, 입영부대TypeCode: soldier.입영부대TypeCode, },
this.session,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe.skip('RegisterCafeRequester e2e', () => {
});
await registerCafeRequester.request(
{
정렬번호: '1',
이름: '홍길동',
생년월일: '2001-01-01',
입영일: '2022-02-14',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class RegisterCafeRequester {
}

private createPayload({
정렬번호,
이름,
군종,
관계,
Expand All @@ -35,7 +36,7 @@ export class RegisterCafeRequester {
입영부대TypeCode,
}: RegisterCafeDto): string {
return new Parameter({
regOrder: '',
regOrder: 정렬번호,
name: 이름,
enterDate: 입영일.replaceAll('-', ''),
birth: 생년월일.replaceAll('-', ''),
Expand All @@ -46,6 +47,7 @@ export class RegisterCafeRequester {
}).toString();
}


private createOptions(session: TheCampSession): AxiosRequestConfig {
return {
headers: {
Expand Down Expand Up @@ -73,6 +75,7 @@ export class RegisterCafeRequester {
}
}
export interface RegisterCafeDto {
정렬번호: string;
이름: string;
입영부대: 입영부대;
군종: 군종;
Expand Down

0 comments on commit 189094e

Please sign in to comment.