Merge pull request 'Worker tests: set the chart kind (charts_primary_is_own)' (#5) from main into prod
CI / test (push) Successful in 44s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 38s

Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
2026-11-17 13:25:02 +01:00
+4 -4
View File
@@ -269,8 +269,8 @@ mod analyses {
.await .await
.unwrap(); .unwrap();
sqlx::query( sqlx::query(
"INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \ "INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \
VALUES ($1, $2, 'Saját', true, '{}', $3, 'hash1')", VALUES ($1, $2, 'Saját', true, 'own', '{}', $3, 'hash1')",
) )
.bind(chart) .bind(chart)
.bind(user) .bind(user)
@@ -424,8 +424,8 @@ mod analyses {
let response = fixture("synastry-response.json"); let response = fixture("synastry-response.json");
let (chart2, synastry) = (Uuid::now_v7(), Uuid::now_v7()); let (chart2, synastry) = (Uuid::now_v7(), Uuid::now_v7());
sqlx::query( sqlx::query(
"INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \ "INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \
VALUES ($1, $2, 'Partner', false, '{}', $3, 'hash2')", VALUES ($1, $2, 'Partner', false, 'person', '{}', $3, 'hash2')",
) )
.bind(chart2) .bind(chart2)
.bind(s.user) .bind(s.user)