diff --git a/mobile/lib/utils/migration.dart b/mobile/lib/utils/migration.dart index 022260f9d9..e5c4bf6efa 100644 --- a/mobile/lib/utils/migration.dart +++ b/mobile/lib/utils/migration.dart @@ -223,14 +223,14 @@ 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}) { ref.read(backupProvider.notifier).cancelBackup(); final backgroundManager = ref.read(backgroundSyncProvider); return Future.wait([ backgroundManager.syncLocal(full: full).then((_) { Logger("runNewSync").fine("Hashing assets after syncLocal"); - backgroundManager.hashAssets(); + return backgroundManager.hashAssets(); }), backgroundManager.syncRemote(), ]);