From 339c1769379a851c4126021132573bd4b7994cf2 Mon Sep 17 00:00:00 2001 From: soryu Date: Mon, 9 Feb 2026 15:55:01 +0000 Subject: Set directive env vars correctly for daemon --- makima/src/db/repository.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'makima/src/db') diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs index 9dedc14..930a73e 100644 --- a/makima/src/db/repository.rs +++ b/makima/src/db/repository.rs @@ -5072,6 +5072,15 @@ pub async fn delete_directive_for_owner( owner_id: Uuid, id: Uuid, ) -> Result { + // Delete all tasks associated with this directive + sqlx::query( + r#"DELETE FROM tasks WHERE directive_id = $1 AND owner_id = $2"#, + ) + .bind(id) + .bind(owner_id) + .execute(pool) + .await?; + let result = sqlx::query( r#"DELETE FROM directives WHERE id = $1 AND owner_id = $2"#, ) -- cgit v1.2.3