diff --git a/Procfile b/Procfile index 2d7c6d7..a181be2 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1 @@ -// worker: node src/utils/doEverythingForScheduler.js - +// worker: node src/utils/doEverythingForScheduler.js \ No newline at end of file diff --git a/src/utils/mongo-wrapper.js b/src/utils/mongo-wrapper.js index 8db08cc..04d4110 100644 --- a/src/utils/mongo-wrapper.js +++ b/src/utils/mongo-wrapper.js @@ -40,7 +40,7 @@ export async function upsert (contents, documentName, collectionName="metaforeca } export async function mongoRead (documentName, collectionName="metaforecastCollection", databaseName="metaforecastDatabase"){ - const url = "mongodb+srv://heroku:MxHTRQsqFasdlpoD@metaforecastdatabaseclu.wgk8a.mongodb.net?writeConcern=majority"; + const url = process.env.MONGODB_URL; const client = new MongoClient(url, { useNewUrlParser: true,