Skip to content

Commit 70882c2

Browse files
committed
fix postgres ssl flag migration from legacy config
1 parent e75ddeb commit 70882c2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/platform/notebooks/deepnote/legacyIntegrationConfigUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function upgradeLegacyIntegrationConfig(
1818
database: config.database,
1919
user: config.username,
2020
password: config.password,
21-
sslEnabled: config.ssl
21+
sslEnabled: Boolean(config.ssl)
2222
}).data;
2323

2424
return metadata

src/platform/notebooks/deepnote/legacyIntegrationConfigUtils.unit.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ suite('upgradeLegacyIntegrationConfig', () => {
4747
port: 5432,
4848
database: 'testdb',
4949
username: 'testuser',
50-
password: 'testpass',
51-
ssl: false
50+
password: 'testpass'
5251
};
5352

5453
const result = await upgradeLegacyIntegrationConfig(legacyConfig);

0 commit comments

Comments
 (0)