Skip to content

Commit 3bd97cd

Browse files
authored
Merge pull request #99 from Move-Log/main
[FIX] 유저 ID 고정 해제
2 parents d345a92 + a318b64 commit 3bd97cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/movelog/domain/record/application/RecordService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public class RecordService {
5353

5454
@Transactional
5555
public void createRecord(UserPrincipal userPrincipal, CreateRecordReq createRecordReq, MultipartFile img) {
56-
// User user = validUserById(userPrincipal);
57-
User user = userRepository.findById(5L).orElseThrow(UserNotFoundException::new);
56+
User user = validUserById(userPrincipal);
57+
// User user = userRepository.findById(5L).orElseThrow(UserNotFoundException::new);
5858
validateCreateRecordReq(createRecordReq);
5959

6060
String recordImgUrl;

0 commit comments

Comments
 (0)