From 3a5e31710cec67f4fdae53968798ae3f31f81c44 Mon Sep 17 00:00:00 2001 From: melohagan <101575380+melohagan@users.noreply.github.com> Date: Wed, 12 Apr 2023 13:51:40 +0100 Subject: [PATCH] Add db prop to redis integration (#10210) * Add db prop to redis integration * Add DB display * Default DB value to 0 --- packages/server/src/integrations/redis.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/server/src/integrations/redis.ts b/packages/server/src/integrations/redis.ts index 4704b8e483..73ef2bb55c 100644 --- a/packages/server/src/integrations/redis.ts +++ b/packages/server/src/integrations/redis.ts @@ -6,6 +6,7 @@ interface RedisConfig { port: number username: string password?: string + db?: number } const SCHEMA: Integration = { @@ -32,6 +33,12 @@ const SCHEMA: Integration = { type: "password", required: false, }, + db: { + type: "number", + required: false, + display: "DB", + default: 0, + }, }, query: { create: { @@ -88,6 +95,7 @@ class RedisIntegration { port: this.config.port, username: this.config.username, password: this.config.password, + db: this.config.db, }) }