Skip to content

Commit

Permalink
fix: added missing parameter to process enrollment force (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianramirez2 authored Oct 13, 2023
1 parent 3cc89a4 commit d92ee1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/model/class-openedx-woocommerce-plugin-api-calls.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function request_handler( $enrollment_data, $enrollment_action ) {
} elseif ( 'enrollment_force' === $enrollment_action ) {

$request_with_email_body = $this->get_enrollment_process_body( $enrollment_data, false, $access_token_string, $enrollment_action );
return $this->process_enrollment_action( $enrollment_data, $enrollment_action, $access_token_string, $request_with_email_body, 'POST' );
return $this->process_enrollment_action( $enrollment_data, $enrollment_action, $access_token_string, $request_with_email_body, self::API_ENROLLMENT, 'POST' );
} elseif ( 'enrollment_allowed_force' === $enrollment_action ) {

$enrollment_allowed_request_body = $this->get_enrollment_allowed_body( $enrollment_data, $access_token_string, $enrollment_action );
Expand Down Expand Up @@ -181,7 +181,7 @@ public function request_handler( $enrollment_data, $enrollment_action ) {
} elseif ( 'enrollment_force' === $enrollment_action ) {

$request_with_email_body = $this->get_enrollment_process_body( $enrollment_data, false, $access_token_string, $enrollment_action );
return $this->process_enrollment_action( $enrollment_data, $enrollment_action, $access_token_string, $request_with_email_body, 'POST' );
return $this->process_enrollment_action( $enrollment_data, $enrollment_action, $access_token_string, $request_with_email_body, self::API_ENROLLMENT, 'POST' );
} elseif ( 'enrollment_allowed_force' === $enrollment_action ) {

$enrollment_allowed_request_body = $this->get_enrollment_allowed_body( $enrollment_data, $access_token_string, $enrollment_action );
Expand Down

0 comments on commit d92ee1c

Please sign in to comment.