(
State(state): State<DashboardState>,
AxumPath(language): AxumPath<String>,
)
| 100 | } |
| 101 | |
| 102 | pub(crate) async fn refresh_language( |
| 103 | State(state): State<DashboardState>, |
| 104 | AxumPath(language): AxumPath<String>, |
| 105 | ) -> ApiResult { |
| 106 | refresh_one(&state, &language).await?; |
| 107 | let snapshot = diagnostics_snapshot(&state).await?; |
| 108 | Ok(Json(json!(snapshot))) |
| 109 | } |
| 110 | |
| 111 | async fn refresh_one(state: &DashboardState, language: &str) -> std::result::Result<(), JsonError> { |
| 112 | reconcile_project_language_activity(state).await?; |
nothing calls this directly
no test coverage detected