diff --git a/apps/sim/lib/workflows/db-helpers.ts b/apps/sim/lib/workflows/db-helpers.ts index b4f6f75897..bc00d01d11 100644 --- a/apps/sim/lib/workflows/db-helpers.ts +++ b/apps/sim/lib/workflows/db-helpers.ts @@ -150,12 +150,7 @@ export async function loadWorkflowFromNormalizedTables( }) // Sanitize any invalid custom tools in agent blocks to prevent client crashes - const { blocks: sanitizedBlocks, warnings } = sanitizeAgentToolsInBlocks(blocksMap) - if (warnings.length > 0) { - logger.warn(`Sanitized workflow ${workflowId} tools with ${warnings.length} warning(s)`, { - warnings, - }) - } + const { blocks: sanitizedBlocks } = sanitizeAgentToolsInBlocks(blocksMap) // Convert edges to the expected format const edgesArray: Edge[] = edges.map((edge) => ({ diff --git a/apps/sim/socket-server/database/operations.ts b/apps/sim/socket-server/database/operations.ts index 388d6610a3..98f5057575 100644 --- a/apps/sim/socket-server/database/operations.ts +++ b/apps/sim/socket-server/database/operations.ts @@ -18,6 +18,7 @@ const socketDb = drizzle( max: 25, onnotice: () => {}, debug: false, + ssl: 'require', }), { schema } ) diff --git a/apps/sim/socket-server/rooms/manager.ts b/apps/sim/socket-server/rooms/manager.ts index b36ac85a77..feef1d1bc8 100644 --- a/apps/sim/socket-server/rooms/manager.ts +++ b/apps/sim/socket-server/rooms/manager.ts @@ -15,6 +15,7 @@ const db = drizzle( connect_timeout: 20, max: 5, onnotice: () => {}, + ssl: 'require', }), { schema } ) diff --git a/packages/db/index.ts b/packages/db/index.ts index d53999e083..01f6e99a33 100644 --- a/packages/db/index.ts +++ b/packages/db/index.ts @@ -16,6 +16,7 @@ const postgresClient = postgres(connectionString, { connect_timeout: 30, max: 80, onnotice: () => {}, + ssl: 'require', }) const drizzleClient = drizzle(postgresClient, { schema }) diff --git a/packages/db/scripts/migrate-deployment-versions.ts b/packages/db/scripts/migrate-deployment-versions.ts index 30677c88b0..f0d0453d67 100644 --- a/packages/db/scripts/migrate-deployment-versions.ts +++ b/packages/db/scripts/migrate-deployment-versions.ts @@ -123,6 +123,7 @@ const postgresClient = postgres(CONNECTION_STRING, { connect_timeout: 30, max: 10, onnotice: () => {}, + ssl: 'require', }) const db = drizzle(postgresClient) diff --git a/packages/db/scripts/register-sso-provider.ts b/packages/db/scripts/register-sso-provider.ts index 3b09c8fd26..fbe04e939c 100644 --- a/packages/db/scripts/register-sso-provider.ts +++ b/packages/db/scripts/register-sso-provider.ts @@ -147,6 +147,7 @@ const postgresClient = postgres(CONNECTION_STRING, { connect_timeout: 30, max: 10, onnotice: () => {}, + ssl: 'require', }) const db = drizzle(postgresClient)