From 3389b3b1320458ec08f63f3db4c9a0c66663b541 Mon Sep 17 00:00:00 2001 From: Daguis Date: Mon, 20 May 2024 14:54:05 -0300 Subject: [PATCH] Fixed user_exists on GH --- backend/src/provider/github/api/get_user_exists.rs | 2 ++ backend/src/provider/github/client.rs | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/backend/src/provider/github/api/get_user_exists.rs b/backend/src/provider/github/api/get_user_exists.rs index 311fd86..5f13e36 100644 --- a/backend/src/provider/github/api/get_user_exists.rs +++ b/backend/src/provider/github/api/get_user_exists.rs @@ -13,6 +13,8 @@ pub enum UserExistsError { //https://api.github.com/users/daguis pub async fn get_user_exists_impl( + owner: String, + repo: String, user_id: String, github_token: String, ) -> Result { diff --git a/backend/src/provider/github/client.rs b/backend/src/provider/github/client.rs index c4f6068..8169928 100644 --- a/backend/src/provider/github/client.rs +++ b/backend/src/provider/github/client.rs @@ -37,7 +37,13 @@ impl IGithubClient for GithubClient { get_is_merged_impl(self.owner.clone(), self.repo.clone(), pr_nbr).await } async fn get_user_exists(&self, user_id: String) -> Result { - get_user_exists_impl(self.github_token.clone(), user_id.clone()).await + get_user_exists_impl( + self.owner.clone(), + self.repo.clone(), + user_id, + self.github_token.clone(), + ) + .await } async fn get_merged_details(&self, pr_nbr: i32) -> Result { get_merge_details_impl(