Skip to content

Commit

Permalink
토큰 포맷에서 진입시간 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
punkryn committed May 4, 2024
1 parent 203457c commit 946a084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ class GetRankAndTokenUseCase @Autowired constructor(private val redisTemplate: R
}

private fun generateToken(email: String, ticketingId: UUID, entryTime: Long) : String {
return "${email}:${ticketingId}:${entryTime}"
return "${email}:${ticketingId}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class GetRankAndTokenUseCaseTest {
val result = getRankAndTokenUseCase.getRankAndToken(GetRankAndTokenCommandDto(email, ticketingId, entryTime))

StepVerifier.create(result)
.expectNext(GetRankAndTokenResultDto(0, "${email}:${ticketingId}:${entryTime}"))
.expectNext(GetRankAndTokenResultDto(0, "${email}:${ticketingId}"))
.expectComplete()
.verify()
}
Expand Down

0 comments on commit 946a084

Please sign in to comment.