Changed old password to correct new process variable

This commit is contained in:
NunoSempere 2021-04-08 23:29:08 +02:00
parent c3dad6ab0f
commit d15a234399
2 changed files with 2 additions and 3 deletions

View File

@ -1,2 +1 @@
// worker: node src/utils/doEverythingForScheduler.js // worker: node src/utils/doEverythingForScheduler.js

View File

@ -40,7 +40,7 @@ export async function upsert (contents, documentName, collectionName="metaforeca
} }
export async function mongoRead (documentName, collectionName="metaforecastCollection", databaseName="metaforecastDatabase"){ 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, { const client = new MongoClient(url, {
useNewUrlParser: true, useNewUrlParser: true,