Skip to content

Commit

Permalink
Use proper class for callback payload
Browse files Browse the repository at this point in the history
  • Loading branch information
zechmeister committed Nov 4, 2024
1 parent 3136362 commit 67311d9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.bund.digitalservice.a2j.controller;

import de.bund.digitalservice.a2j.service.subscriber.SubscriberService;
import dev.fitko.fitconnect.api.domain.model.submission.SubmissionForPickup;
import dev.fitko.fitconnect.api.domain.model.callback.NewSubmissionsCallback;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -16,7 +16,7 @@ public SubscriberController(SubscriberService service) {
}

@PostMapping("callbacks/fit-connect")
public void newSubmission(@RequestBody SubmissionForPickup submission) {
service.pickUpSubmission(submission);
public void newSubmission(@RequestBody NewSubmissionsCallback callback) {
service.pickUpSubmission(callback.getSubmissions().getFirst());
}
}

0 comments on commit 67311d9

Please sign in to comment.