Skip to content

Commit

Permalink
fix: fix delete job
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Aug 3, 2024
1 parent a168107 commit 86e23f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/windmill-api/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5003,7 +5003,7 @@ async fn delete_completed_job<'a>(
require_admin(authed.is_admin, &authed.username)?;
let job_o = sqlx::query_as::<_, CompletedJob>(
"UPDATE completed_job SET args = null, logs = '', result = null, deleted = true WHERE id = $1 AND workspace_id = $2 \
RETURNING *",
RETURNING *, null as labels",
)
.bind(id)
.bind(&w_id)
Expand Down
10 changes: 6 additions & 4 deletions frontend/src/routes/(root)/(logged)/run/[...run]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,12 @@
</div>
</h1>
{#if job?.['deleted']}
<Alert type="error" title="Deleted">
The content of this run was deleted (by an admin, no less)
</Alert>
<div class="my-2" />
<div class="max-w-7xl mx-auto w-full px-4">
<Alert type="error" title="Deleted">
The content of this run was deleted (by an admin, no less)
</Alert>
</div>
<div class="my-4" />
{/if}

<!-- Arguments and actions -->
Expand Down

0 comments on commit 86e23f2

Please sign in to comment.