Skip to content

Commit

Permalink
fix: return status 200 on webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavofg1pontes committed Oct 7, 2024
1 parent d040abd commit 02c6612
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class EnrollmentController implements EnrollmentAPI {

private final EnrollmentService enrollmentService;
private final PaymentService paymentService;
private final AuthService authService;

@Override
public ResponseEntity<String> create(CreateEnrollmentRequest request) {
Expand Down Expand Up @@ -104,6 +103,6 @@ public ResponseEntity<Void> webhook(CreatePaymentRequest request) {
output.ticketID()
);
CreateEnrollmentOutput out = this.enrollmentService.create(input);
return ResponseEntity.created(URI.create("/v1/enrollment/" + out.enrollmentId())).build();
return ResponseEntity.ok().build();
}
}

0 comments on commit 02c6612

Please sign in to comment.