You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi/ClientApp/src/app/state/sonarr/sonarr-initializer.ts

12 lines
343 B

import { APP_INITIALIZER } from "@angular/core";
import { Observable } from "rxjs";
import { SonarrFacade } from "./sonarr.facade";
export const SONARR_INITIALIZER = {
provide: APP_INITIALIZER,
useFactory: (sonarrFacade: SonarrFacade) => (): Observable<unknown> => {
return sonarrFacade.load();
},
multi: true,
deps: [SonarrFacade],
};