Skip to content

Commit

Permalink
conditionally initdb
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed May 31, 2024
1 parent 01f96a9 commit f035f6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metrics-collector/src/service-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ const seedDb = async () => {
console.log("Database seeded with fake metrics");
};

// initDb();
if (!process.env.DB_SKIP_INIT) {
initDb();
}

// Collect Metrics Endpoint
app.post("/api/v1/metrics", async (req: any, res: any) => {
Expand Down

0 comments on commit f035f6c

Please sign in to comment.