Skip to content

Commit

Permalink
Update Environment Variables
Browse files Browse the repository at this point in the history
DEFINITION_MONGO_COLLECTION_NAME is no longer used in the production.
Update the default collection name for documentation purpose.
  • Loading branch information
qtomlinson committed May 30, 2023
1 parent 8bb6ea3 commit 0287595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion full.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"CURATION_MONGO_DB_NAME": "clearlydefined",
"CURATION_MONGO_COLLECTION_NAME": "curations",

"DEFINITION_STORE_PROVIDER": "mongo",
"DEFINITION_STORE_PROVIDER": "mongoTrimmed",
"DEFINITION_MONGO_CONNECTION_STRING": "<mongo connection string here>",
"DEFINITION_MONGO_DB_NAME": "clearlydefined",
"DEFINITION_MONGO_COLLECTION_NAME": "definitions",
Expand Down
2 changes: 1 addition & 1 deletion providers/stores/mongoConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const dbOptions = {
function definitionPaged(options) {
return mongo(options || {
...dbOptions,
collectionName: config.get('DEFINITION_MONGO_COLLECTION_NAME') || 'definitions'
collectionName: config.get('DEFINITION_MONGO_COLLECTION_NAME') || 'definitions-paged'
})
}

Expand Down

0 comments on commit 0287595

Please # to comment.