From 2a2755166debb7ef681ca4491cce972fc39c98bc Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 11 Jun 2024 21:04:03 +0200 Subject: [PATCH] fix: fix dependency tracking for single scripts --- backend/windmill-worker/src/worker_lockfiles.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/worker_lockfiles.rs b/backend/windmill-worker/src/worker_lockfiles.rs index 103d87aa93..6b3f644a8a 100644 --- a/backend/windmill-worker/src/worker_lockfiles.rs +++ b/backend/windmill-worker/src/worker_lockfiles.rs @@ -106,7 +106,7 @@ async fn clear_dependency_map_for_item<'c>( sqlx::query!( "DELETE FROM dependency_map WHERE importer_path = $1 AND importer_kind = $3::text::IMPORTER_KIND - AND workspace_id = $2 AND importer_node_id = $4", + AND workspace_id = $2 AND ($4::text IS NULL OR importer_node_id = $4::text)", item_path, w_id, importer_kind,