feat: complete Phase 3 of service refactoring

- Marked tasks in `TODO.md` as completed for moving backup-related files to the `data-management` directory and correcting imports across the codebase.
- Updated imports in `backup-manager.ts`, API routes, and various components to reflect the new structure.
- Removed obsolete `backup.ts` and `backup-scheduler.ts` files to streamline the codebase.
- Added new tasks in `TODO.md` for future cleaning and organization of service imports.
This commit is contained in:
Julien Froidefond
2025-09-23 10:20:56 +02:00
parent ed16e2bb80
commit b8e0307f03
11 changed files with 26 additions and 20 deletions

View File

@@ -125,7 +125,7 @@ export class SystemInfoService {
private static async getBackupCount(): Promise<number> {
try {
// Import dynamique pour éviter les dépendances circulaires
const { backupService } = await import('../backup');
const { backupService } = await import('../data-management/backup');
const backups = await backupService.listBackups();
return backups.length;
} catch (error) {

View File

@@ -1,8 +1,8 @@
import { promises as fs } from 'fs';
import path from 'path';
import { prisma } from './core/database';
import { userPreferencesService } from './core/user-preferences';
import { BackupUtils } from '../lib/backup-utils';
import { prisma } from '../core/database';
import { userPreferencesService } from '../core/user-preferences';
import { BackupUtils } from '../../lib/backup-utils';
import { getToday } from '@/lib/date-utils';
export interface BackupConfig {