Skip to content

Commit

Permalink
[chore] 누락된 suffix 반영 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
win-luck committed Aug 19, 2024
1 parent 5dcf5cb commit 8f6e981
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class DbFcfsService implements FcfsService{
@Override
@Transactional
public boolean participate(String eventId, String userId){
String key = stringRedisTemplate.opsForValue().get(eventId);
String key = stringRedisTemplate.opsForValue().get(FcfsUtil.eventIdFormatting(eventId));
if(key == null) {
throw new FcfsEventException(ErrorCode.EVENT_NOT_FOUND);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class FcfsAnswerService {

public boolean judgeAnswer(String eventId, String answer) {
// eventId로부터 FCFS의 key를 가져옴
String key = stringRedisTemplate.opsForValue().get(eventId);
String key = stringRedisTemplate.opsForValue().get(FcfsUtil.eventIdFormatting(eventId));
if(key == null) {
throw new FcfsEventException(ErrorCode.FCFS_EVENT_NOT_FOUND);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class RedisLockFcfsService implements FcfsService {

@Override
public boolean participate(String eventId, String userId) {
String key = stringRedisTemplate.opsForValue().get(eventId);
String key = stringRedisTemplate.opsForValue().get(FcfsUtil.eventIdFormatting(eventId));
if(key == null) {
throw new FcfsEventException(ErrorCode.EVENT_NOT_FOUND);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class RedisLuaFcfsService implements FcfsService {

@Override
public boolean participate(String eventId, String userId) {
String key = stringRedisTemplate.opsForValue().get(eventId);
String key = stringRedisTemplate.opsForValue().get(FcfsUtil.eventIdFormatting(eventId));
if(key == null) {
throw new FcfsEventException(ErrorCode.EVENT_NOT_FOUND);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RedisSetFcfsService implements FcfsService {

@Override
public boolean participate(String eventId, String userId) {
String key = stringRedisTemplate.opsForValue().get(eventId);
String key = stringRedisTemplate.opsForValue().get(FcfsUtil.eventIdFormatting(eventId));
if(key == null) {
throw new FcfsEventException(ErrorCode.EVENT_NOT_FOUND);
}
Expand Down

0 comments on commit 8f6e981

Please sign in to comment.