Skip to content

Commit

Permalink
Delete TLDRAW_DB_TEST_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejpass committed Oct 12, 2023
1 parent a7d9beb commit d073aef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions apps/server/src/modules/tldraw/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export interface TldrawConfig {
TLDRAW_PING_TIMEOUT: number;
}

const tldrawConnectionString: string =
(Configuration.get('NODE_ENV') as NodeEnvType) === NodeEnvType.TEST
? (Configuration.get('TLDRAW_DB_URL') as string)
: (Configuration.get('TLDRAW_DB_TEST_URL') as string);
const tldrawConnectionString: string = Configuration.get('TLDRAW_DB_URL') as string;

const tldrawConfig = {
NEST_LOG_LEVEL: Configuration.get('NEST_LOG_LEVEL') as string,
Expand Down
5 changes: 0 additions & 5 deletions config/default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1353,11 +1353,6 @@
"default": "mongodb://127.0.0.1:27017/tldraw",
"description": "DB connection url"
},
"TLDRAW_DB_TEST_URL": {
"type": "string",
"default": "mongodb://127.0.0.1:27017/tldraw-test",
"description": "DB connection url for testing"
},
"FEATURE_TLDRAW_ENABLED": {
"type": "boolean",
"default": true,
Expand Down

0 comments on commit d073aef

Please sign in to comment.