chore(server): validate function not actually used (#11263)

This commit is contained in:
forehalo
2025-03-28 12:51:19 +00:00
parent 387f7211bf
commit 64c7fb1d66
3 changed files with 23 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ defineModuleConfig('redis', {
desc: 'The database index of redis server to be used(Must be less than 10).',
default: 0,
env: ['REDIS_SERVER_DATABASE', 'integer'],
validate: val => val >= 0 && val < 10,
shape: z.number().int().nonnegative().max(10),
},
host: {
desc: 'The host of the redis server.',