From d45cf99dd4f7ba7834f298d96de45b5a819adc9d Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Fri, 18 Oct 2024 19:17:22 +0200 Subject: [PATCH] Add autowithdrawSchemaMembers --- lib/validate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/validate.js b/lib/validate.js index a6a48865..60c6dfb0 100644 --- a/lib/validate.js +++ b/lib/validate.js @@ -772,7 +772,8 @@ export const blinkSchema = object().shape({ .oneOf(['USD', 'BTC'], 'must be BTC or USD'), currencyRecv: string() .transform(value => value ? value.toUpperCase() : 'BTC') - .oneOf(['BTC'], 'must be BTC') + .oneOf(['BTC'], 'must be BTC'), + ...autowithdrawSchemaMembers }, ['apiKey', 'apiKeyRecv']) export const lncSchema = object({