mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat: add e2e tests for library watcher
This commit is contained in:
@@ -114,6 +114,16 @@ export class NotificationService extends BaseService {
|
||||
this.websocketRepository.serverSend('ConfigUpdate', { oldConfig, newConfig });
|
||||
}
|
||||
|
||||
@OnEvent({ name: 'LibraryWatchEnabled' })
|
||||
onLibraryWatchEnabled({ id }: ArgOf<'LibraryWatchEnabled'>) {
|
||||
this.websocketRepository.clientBroadcast('on_library_watch_enabled', { libraryId: id });
|
||||
}
|
||||
|
||||
@OnEvent({ name: 'LibraryWatchFired' })
|
||||
onLibraryWatchFired(event: ArgOf<'LibraryWatchFired'>) {
|
||||
this.websocketRepository.clientBroadcast('on_library_watch_fired', event);
|
||||
}
|
||||
|
||||
@OnEvent({ name: 'AppRestart' })
|
||||
onAppRestart(state: ArgOf<'AppRestart'>) {
|
||||
this.websocketRepository.clientBroadcast('AppRestartV1', {
|
||||
|
||||
Reference in New Issue
Block a user