pub async fn update_deployment_status( pool: &Pool<MySql>, id: i64, status: &str, error_message: Option<&str>, ) -> Result<Deployment>
Updates the status of an existing deployment.