MCPcopy Create free account
hub / github.com/emwalker/digraph / upsert_session

Method upsert_session

backend/src/store.rs:393–409  ·  view source on GitHub ↗
(
        &self,
        input: graphql::CreateGithubSessionInput,
    )

Source from the content-addressed store, hash-verified

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,

Callers 1

create_github_sessionMethod · 0.80

Calls 2

update_byMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected