Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

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.