Skip to content

Commit

Permalink
[BE] Refactor : 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
koomin1227 committed Nov 30, 2023
1 parent f921518 commit 9989422
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions BE/src/login/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,6 @@ export class LoginService {
return { access_token: accessToken, refresh_token: refreshToken };
}

// async registerRegistrationToken(userId, registrationToken) {
// const registrationTokenEntity =
// await this.registrationTokenRepository.findOne({
// where: { user_hash: userId },
// });
// if (registrationTokenEntity !== null) {
// await this.registrationTokenRepository.save({
// user_hash: userId,
// registration_token: registrationToken,
// });
// } else {
// await this.updateRegistrationToken(userId, registrationToken);
// }
// }

// async updateRegistrationToken(userId, registrationToken) {
// const registrationTokenEntity = new RegistrationTokenEntity();
// registrationTokenEntity.user_hash = userId;
// registrationTokenEntity.registration_token = registrationToken;
// await this.registrationTokenRepository.update(
// {
// user_hash: userId,
// },
// { registration_token: registrationToken },
// );
// }

async registerUser(socialProperties: SocialProperties) {
const userEntity = new UserEntity();
userEntity.nickname = this.generateRandomString(8);
Expand Down

0 comments on commit 9989422

Please sign in to comment.