(&self, ctx: &Context<'_>)
| 73 | } |
| 74 | |
| 75 | async fn organization(&self, ctx: &Context<'_>) -> Result<Organization> { |
| 76 | match self { |
| 77 | Self::Default => Ok(Organization::Wiki), |
| 78 | Self::Fetched { |
| 79 | organization_id, .. |
| 80 | } => ctx |
| 81 | .data_unchecked::<Store>() |
| 82 | .organization(organization_id.to_string()) |
| 83 | .await? |
| 84 | .ok_or_else(|| { |
| 85 | Error::NotFound(format!("no org found: {}", organization_id.as_str())) |
| 86 | }), |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | pub async fn owner(&self, ctx: &Context<'_>) -> Result<Option<User>> { |
| 91 | match self { |
nothing calls this directly
no outgoing calls
no test coverage detected