Skip to content

Commit

Permalink
🐛 [Fix]: 게스트 id가 증가되도록 수정
Browse files Browse the repository at this point in the history
🐛 [Fix]: 게스트 id가 증가되도록 수정
  • Loading branch information
seungheon123 authored Dec 4, 2024
2 parents 0eac82d + 34aa647 commit 772e22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export class AuthService {
member.camperId = `guest${this.GUEST_ID}`;
member.name = `guest${this.GUEST_ID}`;
member.field = FieldEnum.WEB;
this.GUEST_ID += 1;
const newMember = await this.memberService.createMember(member);
const payload = { id: newMember.id, camperId: newMember.camperId };
console.log(payload);
return this.jwtService.sign(payload);
}
}

0 comments on commit 772e22e

Please sign in to comment.