Skip to content

Commit

Permalink
fix(data): Remove unnecessary fallback value for DATABASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Jul 18, 2023
1 parent 2052249 commit dbe2fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_layer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import KnexConfig from '../KnexConfig';
*/
const SINGLE_CONNECTION = knex({
client: 'pg',
connection: process.env.DATABASE_URL || 'postgresql://localhost:5432/n',
connection: process.env.DATABASE_URL,
});

export const getDatabase = () => SINGLE_CONNECTION;
Expand Down
1 change: 1 addition & 0 deletions src/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ CREATE_DECK_DIR=''
SPACES_DEFAULT_BUCKET_NAME=''
SPACES_ENDPOINT=''
WORKSPACE_BASE=''
DATABASE_URL='postgresql://localhost:5432/n'

0 comments on commit dbe2fa1

Please sign in to comment.