(&self, link_id: ExternalId)
| 135 | } |
| 136 | |
| 137 | pub async fn fetch_link(&self, link_id: ExternalId) -> Result<Option<git::Link>> { |
| 138 | let key = Okey(link_id, self.viewer.context_repo_id); |
| 139 | match self.object_loader.load_one(key).await? { |
| 140 | Some(object) => Ok(Some(object.try_into()?)), |
| 141 | None => Ok(None), |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | pub async fn fetch_links( |
| 146 | &self, |