Skip to content

Commit 562f98f

Browse files
committed
fix: 변환시 파라미터 이름을 카멜케이스로 변경
1 parent 545a239 commit 562f98f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/src/main/java/coursepick/coursepick/infrastructure/converter/CourseConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public Document convert(Course source) {
2727
document.put("_id", new ObjectId(source.id()));
2828
}
2929
document.put("name", source.name().value());
30-
document.put("road_type", source.roadType().name());
31-
document.put("incline_summary", source.inclineSummary().name());
30+
document.put("roadType", source.roadType().name());
31+
document.put("inclineSummary", source.inclineSummary().name());
3232
document.put("segments", SEGMENTS_WRITER.convert(source.segments()));
3333
document.put("length", source.length().value());
3434
document.put("difficulty", source.difficulty().name());
@@ -43,8 +43,8 @@ public Course convert(Document source) {
4343
return new Course(
4444
source.getObjectId("_id").toHexString(),
4545
new CourseName(source.getString("name")),
46-
RoadType.valueOf(source.getString("road_type")),
47-
InclineSummary.valueOf(source.getString("incline_summary")),
46+
RoadType.valueOf(source.getString("roadType")),
47+
InclineSummary.valueOf(source.getString("inclineSummary")),
4848
SEGMENTS_READER.convert(source.get("segments", Document.class)),
4949
new Meter(source.getDouble("length")),
5050
Difficulty.valueOf(source.getString("difficulty"))

0 commit comments

Comments
 (0)