(
&self,
input: graphql::CreateGithubSessionInput,
)
| 391 | } |
| 392 | |
| 393 | pub async fn upsert_session( |
| 394 | &self, |
| 395 | input: graphql::CreateGithubSessionInput, |
| 396 | ) -> Result<psql::CreateSessionResult> { |
| 397 | let result = psql::CreateGithubSession::new(input).call(&self.db).await?; |
| 398 | |
| 399 | let actor = Arc::new(Viewer::service_account()); |
| 400 | |
| 401 | git::EnsurePersonalRepo { |
| 402 | actor: Arc::clone(&actor), |
| 403 | user_id: result.user.id.to_string(), |
| 404 | personal_repo_ids: result.personal_repo_ids.to_owned(), |
| 405 | } |
| 406 | .call(self.update_by(&actor)?)?; |
| 407 | |
| 408 | Ok(result) |
| 409 | } |
| 410 | |
| 411 | pub async fn upsert_topic( |
| 412 | &self, |
no test coverage detected