mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
refactor: DRY end maintenance
This commit is contained in:
@@ -257,11 +257,7 @@ export class MaintenanceWorkerService {
|
||||
action: MaintenanceAction.End,
|
||||
});
|
||||
|
||||
// => corresponds to notification.service.ts#onAppRestart
|
||||
const state: MaintenanceModeState = { isMaintenanceMode: false };
|
||||
this.maintenanceWebsocketRepository.clientBroadcast('AppRestartV1', state);
|
||||
this.maintenanceWebsocketRepository.serverSend('AppRestart', state);
|
||||
this.appRepository.exitApp();
|
||||
await this.endMaintenance();
|
||||
}
|
||||
|
||||
async listBackups(): Promise<Record<'backups' | 'failedBackups', string[]>> {
|
||||
|
||||
Reference in New Issue
Block a user