(
&self,
ctx: &Context<'_>,
input: UpdateTopicSynonymsInput,
)
| 465 | } |
| 466 | |
| 467 | async fn update_topic_synonyms( |
| 468 | &self, |
| 469 | ctx: &Context<'_>, |
| 470 | input: UpdateTopicSynonymsInput, |
| 471 | ) -> Result<UpdateTopicSynonymsPayload> { |
| 472 | let store = ctx.data_unchecked::<Store>(); |
| 473 | let client_mutation_id = input.client_mutation_id.clone(); |
| 474 | |
| 475 | let git::UpdateTopicSynonymsResult { |
| 476 | alerts, repo_topic, .. |
| 477 | } = store.update_topic_synonyms(input).await?; |
| 478 | |
| 479 | let updated_topic: Topic = store |
| 480 | .fetch_topic(repo_topic.topic_id().to_owned()) |
| 481 | .await? |
| 482 | .try_into()?; |
| 483 | |
| 484 | Ok(UpdateTopicSynonymsPayload { |
| 485 | alerts: alerts.iter().map(alert::Alert::from).collect_vec(), |
| 486 | client_mutation_id, |
| 487 | updated_repo_topic: repo_topic.into(), |
| 488 | updated_topic, |
| 489 | }) |
| 490 | } |
| 491 | |
| 492 | async fn upsert_link( |
| 493 | &self, |
nothing calls this directly
no test coverage detected