Skip to content

Commit

Permalink
chore: default metrics storage days updated (#8931)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Dec 6, 2024
1 parent 4b443e2 commit c81d45b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/__snapshots__/create-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`should create default config 1`] = `
"enabled": true,
"maxAge": 3600000,
},
"dailyMetricsStorageDays": 31,
"dailyMetricsStorageDays": 91,
"db": {
"acquireConnectionTimeout": 30000,
"applicationName": "unleash",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ export function createConfig(options: IUnleashOptions): IUnleashConfig {
const feedbackUriPath = process.env.FEEDBACK_URI_PATH;

const dailyMetricsStorageDays = Math.min(
parseEnvVarNumber(process.env.DAILY_METRICS_STORAGE_DAYS, 31),
parseEnvVarNumber(process.env.DAILY_METRICS_STORAGE_DAYS, 91),
91,
);

Expand Down

0 comments on commit c81d45b

Please sign in to comment.