Skip to content

Commit

Permalink
refactor: 동영상 생성 dto 필드명 수정
Browse files Browse the repository at this point in the history
- `file` -> `video`
  • Loading branch information
SJ70 committed Aug 14, 2024
1 parent 0354a8b commit 31880dd
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 @@ -10,7 +10,7 @@
public record VideoCreateDto(

@VideoTypeCheck
MultipartFile file,
MultipartFile video,

@NotNull
@NotBlank
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/j9/bestmoments/service/VideoService.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Video upload(Member member, VideoCreateDto createDto) {
.description(createDto.description())
.build();
String fileName = FileNameGenerator.generateVideoFileName(video);
String fileUrl = storageService.uploadFile(createDto.file(), fileName);
String fileUrl = storageService.uploadFile(createDto.video(), fileName);
video.setFileUrl(fileUrl);
videoRepository.save(video);
return video;
Expand Down

0 comments on commit 31880dd

Please sign in to comment.