Fix inverted lnbitsSchema env check (#1185)
This commit is contained in:
parent
7e1c62fdcb
commit
b7353ddd69
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue