fix: database bug

This commit is contained in:
NunoSempere 2022-02-28 11:50:40 -05:00
parent 83e50e7349
commit 62f77071f5

View File

@ -29,7 +29,7 @@ export async function databaseUpsert({ contents, group }) {
.replace("-", "_"); .replace("-", "_");
mongoDocName = `metaforecast_history_${dateUpToMonth}`; mongoDocName = `metaforecast_history_${dateUpToMonth}`;
await mongoUpsert( await mongoUpsert(
data, contents,
mongoDocName, mongoDocName,
"metaforecastHistory", "metaforecastHistory",
"metaforecastDatabase" "metaforecastDatabase"
@ -154,4 +154,3 @@ export async function databaseReadWithReadCredentials({ group }) {
} }
//= ; //= ;
// databaseReadWithReadCredentials(documentName, collectionName = "metaforecastCollection", databaseName = "metaforecastDatabase") // databaseReadWithReadCredentials(documentName, collectionName = "metaforecastCollection", databaseName = "metaforecastDatabase")