diff options
Diffstat (limited to 'makima/src/db')
| -rw-r--r-- | makima/src/db/repository.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs index de1712d..7c9154f 100644 --- a/makima/src/db/repository.rs +++ b/makima/src/db/repository.rs @@ -2152,7 +2152,7 @@ pub async fn create_contract_for_owner( let contract_type = req.contract_type.as_deref().unwrap_or("simple"); // Validate contract type - let valid_types = ["simple", "specification"]; + let valid_types = ["simple", "specification", "execute"]; if !valid_types.contains(&contract_type) { return Err(sqlx::Error::Protocol(format!( "Invalid contract_type '{}'. Must be one of: {}", @@ -2165,6 +2165,7 @@ pub async fn create_contract_for_owner( let (valid_phases, default_phase): (&[&str], &str) = match contract_type { "simple" => (&["plan", "execute"], "plan"), "specification" => (&["research", "specify", "plan", "execute", "review"], "research"), + "execute" => (&["execute"], "execute"), _ => (&["plan", "execute"], "plan"), }; |
