Skip to content

Commit cf7b0a7

Browse files
committed
chore: fix compilation.
Correction for 108acf7 commit. Relate to #785
1 parent 7be4e62 commit cf7b0a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/ru/mystamps/web/feature/series/RestSeriesController.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ public ResponseEntity<Void> updateSeries(
6060
}
6161

6262
for (PatchRequest patch : patches) {
63-
if (patch.op != Operation.add) {
63+
if (patch.getOp() != Operation.add) {
6464
// @todo #785 Update series: properly fail on non-supported operations
6565
continue;
6666
}
6767

68-
switch (patch.path) {
68+
switch (patch.getPath()) {
6969
case "/comment":
70-
seriesService.addComment(seriesId, patch.value);
70+
seriesService.addComment(seriesId, patch.getValue());
7171
break;
7272
default:
7373
// @todo #785 Update series: properly fail on invalid path

0 commit comments

Comments
 (0)