Skip to content

Commit

Permalink
style: remove @transactional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-soo708 committed Dec 14, 2023
1 parent 26fe8f1 commit f5d5c6f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.concurrent.TimeUnit;

@Service
Expand All @@ -28,7 +27,6 @@ public RefreshTokenService(@Value("${security.jwt.token.refresh-key-expire-lengt
this.redisTemplate = redisTemplate;
}

@Transactional
public void saveTokenInfo(Long memberId, String refreshToken, String accessToken) {
Token token = Token.builder()
.id(memberId)
Expand Down Expand Up @@ -58,7 +56,6 @@ public Token findTokenByRefreshToken(String refreshToken) {
throw new InvalidRefreshTokenException();
}

@Transactional
public void updateToken(Token token) {
redisTemplate.opsForValue().set(token.getRefreshToken(), token, token.getExpiration(), TimeUnit.MILLISECONDS);
}
Expand Down

0 comments on commit f5d5c6f

Please sign in to comment.