Skip to content

Commit

Permalink
fix: fleet connection to main db
Browse files Browse the repository at this point in the history
  • Loading branch information
TBonnin committed Dec 9, 2024
1 parent f4af289 commit 95f5b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fleet/lib/fleet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { envs } from './env.js';

const defaultDbUrl =
envs.NANGO_DATABASE_URL ||
`postgres://${encodeURIComponent(envs.NANGO_DB_USER)}:${encodeURIComponent(envs.NANGO_DB_PASSWORD)}@${envs.NANGO_DB_HOST}:${envs.NANGO_DB_PORT}/${envs.NANGO_DB_NAME}${envs.NANGO_DB_SSL ? '?sslmode=required' : ''}`;
`postgres://${encodeURIComponent(envs.NANGO_DB_USER)}:${encodeURIComponent(envs.NANGO_DB_PASSWORD)}@${envs.NANGO_DB_HOST}:${envs.NANGO_DB_PORT}/${envs.NANGO_DB_NAME}${envs.NANGO_DB_SSL ? '?sslmode=no-verify' : ''}`;

export class Fleet {
private dbClient: DatabaseClient;
Expand Down

0 comments on commit 95f5b18

Please sign in to comment.