Skip to content

Commit

Permalink
refactor: 필드명 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Jan 5, 2025
1 parent 78e74fd commit 870397f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Long create(CreateFixZoneCommand command) {
Long createdFixZoneId = fixZoneService.save(createdFixZone);

List<FileMetaDataIdOrderDto> imageFileMetaDataIdOrderDtos = command.imageInfos().stream()
.map(imageInfo -> FileMetaDataIdOrderDto.of(imageInfo.imagId(), imageInfo.order()))
.map(imageInfo -> FileMetaDataIdOrderDto.of(imageInfo.imageId(), imageInfo.order()))
.toList();

fileMetaDataService.updateStatusToCoupledWithOrder(
Expand Down Expand Up @@ -82,7 +82,7 @@ public Long update(UpdateFixZoneCommand command) {
FixZone fixZone = fixZoneService.getById(command.fixZoneId());
fixZone.update(command.toEntity());
List<FileMetaDataIdOrderDto> imageFileMetaDataIdOrderDtos = command.imageInfos().stream()
.map(imageInfo -> FileMetaDataIdOrderDto.of(imageInfo.imagId(), imageInfo.order()))
.map(imageInfo -> FileMetaDataIdOrderDto.of(imageInfo.imageId(), imageInfo.order()))
.toList();
fileMetaDataService.updateWithOrder(imageFileMetaDataIdOrderDtos, DomainType.FIX_ZONE_IMAGE, fixZone.getId());
return fixZone.getId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public FixZone toEntity(Club club) {
}

public record ImageInfo(
String imagId,
String imageId,
int order
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public FixZone toEntity() {
}

public record ImageInfo(
String imagId,
String imageId,
int order
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void create(CreateNoticeCommand command) {
Long createdNoticeId = noticeService.save(notice);

List<FileMetaDataIdOrderDto> imageFileMetaDataIdOrderDtos = command.imageInfos().stream()
.map(imageInfo -> FileMetaDataIdOrderDto.of(imageInfo.imagId(), imageInfo.order()))
.map(imageInfo -> FileMetaDataIdOrderDto.of(imageInfo.imageId(), imageInfo.order()))
.toList();

List<FileMetaDataIdOrderDto> fileFileMetaDataIdOrderDtos = command.fileInfos().stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Notice toEntity() {
}

public record ImageInfo(
String imagId,
String imageId,
int order
) {

Expand Down

0 comments on commit 870397f

Please sign in to comment.