refactor pesantissimo dei Customer Files

This commit is contained in:
2026-04-23 11:20:34 +02:00
parent ba54267b77
commit 41f6d0dd43
25 changed files with 518 additions and 157 deletions

View File

@@ -235,7 +235,7 @@ class ServicesCubit extends Cubit<ServicesState> {
serviceId: state.currentService?.id ?? '',
name: file.name.fileNameWithoutExtension(),
extension: file.name.fileExtension(),
url: '',
storagePath: '',
fileSize: file.size,
localBytes: file.bytes,
createdAt: DateTime.now(),
@@ -295,7 +295,7 @@ class ServicesCubit extends Cubit<ServicesState> {
orElse: () => file,
);
if (savedFile.url.isEmpty) {
if (savedFile.storagePath.isEmpty) {
throw Exception(
"Errore: URL del file non trovato dopo il salvataggio.",
);