Skip to content

Commit 6947129

Browse files
authored
chore: imp convertor script (#431)
1 parent f5fc528 commit 6947129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

convertors/move-timestamp-out-of-payload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require('dotenv').config();
2+
require('process');
23
const { MongoClient } = require('mongodb');
34

45
/**
@@ -126,7 +127,7 @@ async function backfillTimestampsFromEvents(db, repetitionCollectionName, projec
126127
* Method that runs convertor script
127128
*/
128129
async function run() {
129-
const fullUri = 'mongodb://hawk_new:evieg9bauK0ahs2youhoh7aer7kohT@rc1d-2jltinutse1eadfs.mdb.yandexcloud.net:27018/hawk_events?authSource=admin&replicaSet=rs01&tls=true&tlsInsecure=true';
130+
const fullUri = process.env.MONGO_EVENTS_DATABASE_URI;
130131

131132
// Parse the Mongo URL manually
132133
const mongoUrl = new URL(fullUri);

0 commit comments

Comments
 (0)