hunk.code_window:       }
         const userId = req.user.id;
         const fileName = `${userId}${extname(file.originalname)}`;
         cb(null, sanitize(fileName));
       },
     }),
   };
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:       cb(null, sanitize(String(fileName)));
  
hunk.file_path: server/apps/immich/src/config/profile-image-upload.config.ts
hunk.type: replace
file: import 'package:hooks_riverpod/hooks_riverpod.dart';
  import 'package:immich_mobile/modules/backup/models/error_upload_asset.model.dart';
  
  class ErrorBackupListNotifier extends StateNotifier<Set<ErrorUploadAsset>> {
    ErrorBackupListNotifier() : super({});
  
    add(ErrorUploadAsset errorAsset) {
      state = state.union({errorAsset});
    }
  
    remove(ErrorUploadAsset errorAsset) {
      state = state.difference({errorAsset});
    }
  
    empty() {
      state = {};
    }
  }
  
  final errorBackupListProvider =
      StateNotifierProvider<ErrorBackupListNotifier, Set<ErrorUploadAsset>>(
    (ref) => ErrorBackupListNotifier(),
  );
  