Skip to content

Commit

Permalink
Readd parsed response body
Browse files Browse the repository at this point in the history
  • Loading branch information
IanRamosC committed Jun 25, 2024
1 parent 6843a3b commit bc98dc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/packages/explat/src/class-rest-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public function get_assignments( $request ) {
);
}

return rest_ensure_response( $response );
return rest_ensure_response(
json_decode( wp_remote_retrieve_body( $response ), true )
);
}
}

0 comments on commit bc98dc9

Please sign in to comment.