Skip to content

Commit

Permalink
comment out KPi insert, since we just need one time data else can get…
Browse files Browse the repository at this point in the history
… overloaded
  • Loading branch information
ubaidniaz committed Feb 3, 2024
1 parent 77332eb commit 79bf608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ mongoose
.connect(process.env.MONGO_URL)
.then(async() => {
app.listen(PORT, () => console.log(`Server running on port: ${PORT}`));

await mongoose.connection.db.dropDatabase();
KPI.insertMany(kpis);
/* ADD DATA ONE TIMEONLY OR AS NEEDED */
// await mongoose.connection.db.dropDatabase();
// KPI.insertMany(kpis);
})
.catch((error) => console.log(`${error} did not connect`));

0 comments on commit 79bf608

Please sign in to comment.