diff --git a/config/config.example.toml b/config/config.example.toml index 9a84214d..5009212f 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -24,7 +24,6 @@ host = "localhost" port = 6379 password = "" database = 0 -enabled = true [redis.cache] # Redis instance to be used as a timeline cache diff --git a/config/config.schema.json b/config/config.schema.json index ecb27697..b1d2f2cb 100644 --- a/config/config.schema.json +++ b/config/config.schema.json @@ -89,10 +89,6 @@ "database": { "type": "integer", "default": 0 - }, - "enabled": { - "type": "boolean", - "default": false } }, "additionalProperties": false, @@ -100,8 +96,7 @@ "host": "localhost", "port": 6379, "password": "", - "database": 0, - "enabled": false + "database": 0 } }, "cache": { diff --git a/packages/config-manager/config.type.ts b/packages/config-manager/config.type.ts index d636ff60..25a40c03 100644 --- a/packages/config-manager/config.type.ts +++ b/packages/config-manager/config.type.ts @@ -72,7 +72,6 @@ export const configValidator = z .default(6379), password: z.string().default(""), database: z.number().int().default(0), - enabled: z.boolean().default(false), }) .strict() .default({ @@ -80,7 +79,6 @@ export const configValidator = z port: 6379, password: "", database: 0, - enabled: false, }), cache: z .object({ @@ -540,6 +538,7 @@ export const configValidator = z // 1 year .default(60 * 60 * 24 * 365), }) + .strict() .default({ remove_on_complete: 60 * 60 * 24 * 365, remove_on_failure: 60 * 60 * 24 * 365, @@ -557,6 +556,7 @@ export const configValidator = z // 1 year .default(60 * 60 * 24 * 365), }) + .strict() .default({ remove_on_complete: 60 * 60 * 24 * 365, remove_on_failure: 60 * 60 * 24 * 365, @@ -574,11 +574,13 @@ export const configValidator = z // 1 year .default(60 * 60 * 24 * 365), }) + .strict() .default({ remove_on_complete: 60 * 60 * 24 * 365, remove_on_failure: 60 * 60 * 24 * 365, }), }) + .strict() .default({ delivery: { remove_on_complete: 60 * 60 * 24 * 365,