Fix error when no backend specified

This commit is contained in:
2025-02-25 16:41:49 +01:00
parent 1fabb32fb6
commit b1c89efab9

View File

@@ -17,9 +17,9 @@ export abstract class Backend<C extends BackendSettings> {
} }
public remind(config: Config, notification: Notification) { public remind(config: Config, notification: Notification) {
const cfg = config.backend[this.name] as Partial<C>; const cfg = config?.backend?.[this.name] as Partial<C> | undefined;
if (cfg.enable !== true) { if (cfg?.enable !== true) {
return return
} }