Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(properties): only update task status property when updating task status (#2121)

Will Hutchinsonaad1e6aadf2f
diff --git a/rust/cloud-storage/system_properties/.sqlx/query-cf71680da3444f573f4cddf66b6269bfe31aeee4bbec34b7e6067a855e28f2b7.json b/rust/cloud-storage/system_properties/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json
similarity index 50%
rename from rust/cloud-storage/system_properties/.sqlx/query-cf71680da3444f573f4cddf66b6269bfe31aeee4bbec34b7e6067a855e28f2b7.json
rename to rust/cloud-storage/system_properties/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json
index 9dc9838dc0..505a2bd912 100644
--- a/rust/cloud-storage/system_properties/.sqlx/query-cf71680da3444f573f4cddf66b6269bfe31aeee4bbec34b7e6067a855e28f2b7.json
+++ b/rust/cloud-storage/system_properties/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json
@@ -1,15 +1,16 @@
{
"db_name": "PostgreSQL",
- "query": "\n UPDATE entity_properties\n SET values = $2\n WHERE entity_id = $1;\n ",
+ "query": "\n UPDATE entity_properties\n SET values = $2\n WHERE entity_id = $1\n AND property_definition_id = $3\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text",
- "Jsonb"
+ "Jsonb",
+ "Uuid"
]
},
"nullable": []
},
- "hash": "cf71680da3444f573f4cddf66b6269bfe31aeee4bbec34b7e6067a855e28f2b7"
+ "hash": "8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911"
}
diff --git a/rust/cloud-storage/system_properties/src/outbound/pgpool/mod.rs b/rust/cloud-storage/system_properties/src/outbound/pgpool/mod.rs
index c5beb8f3b4..c7bed4d8f4 100644
--- a/rust/cloud-storage/system_properties/src/outbound/pgpool/mod.rs
+++ b/rust/cloud-storage/system_properties/src/outbound/pgpool/mod.rs
@@ -213,10 +213,12 @@ impl SystemPropertiesRepository for PgSystemPropertiesRepository {
r#"
UPDATE entity_properties
SET values = $2
- WHERE entity_id = $1;
+ WHERE entity_id = $1
+ AND property_definition_id = $3
"#,
task_id,
- value
+ value,
+ SystemPropertyKey::Status.uuid(),
)
.execute(&self.pool)
.await?;