Skip to content

Commit 79cf4ab

Browse files
committed
update theme tomecode added
1 parent 4361263 commit 79cf4ab

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/main/java/com/timecoder/payload/UpdateThemeDto.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ public class UpdateThemeDto {
1212

1313
@JsonProperty
1414
private String title;
15+
@JsonProperty
16+
private String timecode;
1517
}

src/main/java/com/timecoder/service/ThemeService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public boolean deleteFreeTheme(Long id) {
8989
public Theme updateTheme(Long id, UpdateThemeDto updateThemeDto) {
9090
Theme theme = themeRepository.findById(id).get();
9191
theme.setTitle(updateThemeDto.getTitle());
92+
theme.setTimecode(updateThemeDto.getTimecode());
9293
return themeRepository.save(theme);
9394
}
9495
}

0 commit comments

Comments
 (0)