feat(server): start up folder checks (#12401)

This commit is contained in:
Jason Rasmussen 2024-09-07 13:21:25 -04:00 committed by GitHub
parent 2554cc96b0
commit 1e3052bd0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 133 additions and 14 deletions

View file

@ -12,6 +12,9 @@ type Item<T extends EmitEvent> = {
label: string;
};
export class ImmichStartupError extends Error {}
export const isStartUpError = (error: unknown): error is ImmichStartupError => error instanceof ImmichStartupError;
export const setupEventHandlers = (moduleRef: ModuleRef) => {
const reflector = moduleRef.get(Reflector, { strict: false });
const repository = moduleRef.get<IEventRepository>(IEventRepository);