(
&self,
ctx: &Context<'_>,
input: RemoveTopicTimerangeInput,
)
| 355 | } |
| 356 | |
| 357 | async fn remove_topic_timerange( |
| 358 | &self, |
| 359 | ctx: &Context<'_>, |
| 360 | input: RemoveTopicTimerangeInput, |
| 361 | ) -> Result<RemoveTopicTimerangePayload> { |
| 362 | let RemoveTopicTimerangeInput { |
| 363 | client_mutation_id, |
| 364 | repo_id, |
| 365 | topic_id, |
| 366 | } = &input; |
| 367 | |
| 368 | let topic_id = topic_id.try_into()?; |
| 369 | let store = ctx.data_unchecked::<Store>(); |
| 370 | let git::RemoveTopicTimerangeResult { repo_topic, .. } = store |
| 371 | .remove_topic_timerange(repo_id.try_into()?, &topic_id) |
| 372 | .await?; |
| 373 | let updated_topic: Topic = store.fetch_topic(topic_id).await?.try_into()?; |
| 374 | |
| 375 | Ok(RemoveTopicTimerangePayload { |
| 376 | client_mutation_id: client_mutation_id.to_owned(), |
| 377 | updated_repo_topic: repo_topic.into(), |
| 378 | updated_topic, |
| 379 | }) |
| 380 | } |
| 381 | |
| 382 | async fn select_repository( |
| 383 | &self, |
nothing calls this directly
no test coverage detected