Skip to content

Commit

Permalink
chore:rename post client
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Sep 15, 2024
1 parent 1908a7a commit 9465923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/client/src/modules/post/post_create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ pub struct PostCreate {
pub error: Option<PostCreatePostCreateError>,
}

pub async fn posts(public_client: &PostClient, input: PostCreateInput) -> Result<PostCreate> {
let url = public_client.domain.join(GRAPHQL_PATH)?;
pub async fn posts(post_client: &PostClient, input: PostCreateInput) -> Result<PostCreate> {
let url = post_client.domain.join(GRAPHQL_PATH)?;
let variables = Variables { input };

let res = post_graphql::<PostCreate, _>(&public_client.client, url, variables)
let res = post_graphql::<PostCreate, _>(&post_client.client, url, variables)
.await
.map_err(|err| anyhow!("Failed to create post. {err}"))?;
let data = res.data.unwrap().post_create;
Expand Down

0 comments on commit 9465923

Please sign in to comment.