From 0ba80abb478a352bc163e3aa18827d9562e4e2b1 Mon Sep 17 00:00:00 2001 From: feco Date: Tue, 17 Nov 2026 12:22:55 +0000 Subject: [PATCH] Worker tests: set the chart kind (charts_primary_is_own) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL --- services/worker/src/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/worker/src/tests.rs b/services/worker/src/tests.rs index 2bb86ac..954a6a7 100644 --- a/services/worker/src/tests.rs +++ b/services/worker/src/tests.rs @@ -269,8 +269,8 @@ mod analyses { .await .unwrap(); sqlx::query( - "INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \ - VALUES ($1, $2, 'Saját', true, '{}', $3, 'hash1')", + "INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \ + VALUES ($1, $2, 'Saját', true, 'own', '{}', $3, 'hash1')", ) .bind(chart) .bind(user) @@ -424,8 +424,8 @@ mod analyses { let response = fixture("synastry-response.json"); let (chart2, synastry) = (Uuid::now_v7(), Uuid::now_v7()); sqlx::query( - "INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \ - VALUES ($1, $2, 'Partner', false, '{}', $3, 'hash2')", + "INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \ + VALUES ($1, $2, 'Partner', false, 'person', '{}', $3, 'hash2')", ) .bind(chart2) .bind(s.user)