fix: htmx aware error handling

This commit is contained in:
Per Stark
2025-04-08 16:12:08 +02:00
parent c000ac07b3
commit c3c0f69bba
3 changed files with 38 additions and 39 deletions

View File

@@ -151,6 +151,7 @@ pub async fn show_active_jobs(
State(state): State<HtmlState>,
RequireUser(user): RequireUser,
) -> Result<impl IntoResponse, HtmlError> {
return Ok(TemplateResponse::server_error());
let active_jobs = User::get_unfinished_ingestion_tasks(&user.id, &state.db).await?;
Ok(TemplateResponse::new_partial(