From 028759552ed5553e02f4bb5942d33b6833e50db7 Mon Sep 17 00:00:00 2001 From: Qing Tomlinson Date: Tue, 30 May 2023 07:52:58 -0700 Subject: [PATCH] Update Environment Variables DEFINITION_MONGO_COLLECTION_NAME is no longer used in the production. Update the default collection name for documentation purpose. --- full.env.json | 2 +- providers/stores/mongoConfig.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/full.env.json b/full.env.json index 7dc18b682..c9cdfb69b 100644 --- a/full.env.json +++ b/full.env.json @@ -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": "", "DEFINITION_MONGO_DB_NAME": "clearlydefined", "DEFINITION_MONGO_COLLECTION_NAME": "definitions", diff --git a/providers/stores/mongoConfig.js b/providers/stores/mongoConfig.js index 9905db4d6..6d1845c08 100644 --- a/providers/stores/mongoConfig.js +++ b/providers/stores/mongoConfig.js @@ -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' }) }