mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(server): start up folder checks (#12401)
This commit is contained in:
parent
2554cc96b0
commit
1e3052bd0b
9 changed files with 133 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue