mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
fix: crash when payments are disabled
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
parent
4ec6f20cc9
commit
280e24f75c
@ -51,7 +51,7 @@ const createZebedeePaymentsProcessor = (settings: Settings): IPaymentsProcessor
|
||||
export const createPaymentsProcessor = (): IPaymentsProcessor => {
|
||||
const settings = createSettings()
|
||||
if (!settings.payments?.enabled) {
|
||||
throw new Error('Unable to create payments processor: Setting payments.enabled is false')
|
||||
return new NullPaymentsProcessor()
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user