From d15a234399524407920d68e3159957c06d7ceda4 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 8 Apr 2021 23:29:08 +0200 Subject: [PATCH] Changed old password to correct new process variable --- Procfile | 3 +-- src/utils/mongo-wrapper.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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,