Skip to content

Commit

Permalink
fix!: Fix get_request endpoint naming
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-leinz committed Jul 31, 2024
1 parent 1438d4d commit d4a8f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ pub trait FreedomApi: Send + Sync {
/// Produces a single [`TaskRequest`] matching the provided ID.
///
/// See [`get`](Self::get) documentation for more details about the process and return type
async fn get_request_by_task_id(
async fn get_request_by_id(
&self,
task_id: i32,
task_request_id: i32,
) -> Result<Self::Container<TaskRequest>, Error> {
let uri = self.path_to_url(format!("requests/{task_id}"));
let uri = self.path_to_url(format!("requests/{task_request_id}"));

self.get(uri).await
}
Expand Down

0 comments on commit d4a8f46

Please sign in to comment.