Adapt to changes in Gerrit core

Depends-On: https://gerrit-review.googlesource.com/c/gerrit/+/308307
Change-Id: Ifdd7d65eef52a0cd8be540971e10863b8ecc4e40
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
index 686a2c7..cae071a 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
@@ -258,7 +258,7 @@
     // commit time so we will be able to skip this normalization step.
     Change change = notes.getChange();
     PatchSetApproval submit = null;
-    for (PatchSetApproval a : approvalsUtil.byPatchSet(notes, ps.id(), null, null)) {
+    for (PatchSetApproval a : approvalsUtil.byPatchSet(notes, ps.id())) {
       if (a.value() == 0) {
         // Ignore 0 values.
       } else if (a.isLegacySubmit()) {