diff --git a/mobile/lib/utils/migration.dart b/mobile/lib/utils/migration.dart index 609b3cfca8..022260f9d9 100644 --- a/mobile/lib/utils/migration.dart +++ b/mobile/lib/utils/migration.dart @@ -223,11 +223,11 @@ class _DeviceAsset { const _DeviceAsset({required this.assetId, this.hash, this.dateTime}); } -Future runNewSync(WidgetRef ref, {bool full = false}) async { +Future> runNewSync(WidgetRef ref, {bool full = false}) async { ref.read(backupProvider.notifier).cancelBackup(); final backgroundManager = ref.read(backgroundSyncProvider); - Future.wait([ + return Future.wait([ backgroundManager.syncLocal(full: full).then((_) { Logger("runNewSync").fine("Hashing assets after syncLocal"); backgroundManager.hashAssets();