Skip to content

Commit a318b64

Browse files
committed
[FIX] User Id 고정 해제
1 parent c4eb32b commit a318b64

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)