refactor: DRY end maintenance

This commit is contained in:
izzy
2025-11-20 15:26:03 +00:00
parent 31410c3c20
commit dd1cf12aaa

View File

@@ -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[]>> {