Method
delete_link
(
&self,
ctx: &Context<'_>,
input: DeleteLinkInput,
)
Source from the content-addressed store, hash-verified
| 288 | } |
| 289 | |
| 290 | async fn delete_link( |
| 291 | &self, |
| 292 | ctx: &Context<'_>, |
| 293 | input: DeleteLinkInput, |
| 294 | ) -> Result<DeleteLinkPayload> { |
| 295 | let DeleteLinkInput { |
| 296 | client_mutation_id, |
| 297 | link_id, |
| 298 | repo_id, |
| 299 | } = input; |
| 300 | let link_id = ExternalId::try_from(&link_id)?; |
| 301 | |
| 302 | let git::DeleteLinkResult { |
| 303 | deleted_link_id, .. |
| 304 | } = ctx |
| 305 | .data_unchecked::<Store>() |
| 306 | .delete_link(repo_id.try_into()?, &link_id) |
| 307 | .await?; |
| 308 | |
| 309 | Ok(DeleteLinkPayload { |
| 310 | client_mutation_id, |
| 311 | deleted_link_id: Some(deleted_link_id.to_string()), |
| 312 | }) |
| 313 | } |
| 314 | |
| 315 | async fn delete_session( |
| 316 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected