Fix inverted lnbitsSchema env check (#1185)

This commit is contained in:
ekzyis 2024-05-18 10:14:12 -05:00 committed by GitHub
parent 7e1c62fdcb
commit b7353ddd69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ export const lnAddrSchema = ({ payerData, min, max, commentAllowed } = {}) =>
}, {})))
export const lnbitsSchema = object({
url: process.env.NODE_ENV !== 'development'
url: process.env.NODE_ENV === 'development'
? string()
.or([string().matches(/^(http:\/\/)?localhost:\d+$/), string().url()], 'invalid url')
.required('required').trim()