diff --git a/cala-server/src/integration/mod.rs b/cala-server/src/integration/mod.rs index af682c88..89d5f1a2 100644 --- a/cala-server/src/integration/mod.rs +++ b/cala-server/src/integration/mod.rs @@ -64,7 +64,8 @@ impl Integrations { name: String, data: impl serde::Serialize, ) -> Result { - let integration = Integration::new(name, data); + let integration = Integration::new(id, name, data); + let (cipher, nonce) = integration.data.encrypt(&self.encryption_config.key)?; sqlx::query!( r#"INSERT INTO integrations (id, name, cipher, nonce)