From a17770adb3bd780cf2b41e6c5261bcbca85ccda7 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Mon, 28 Oct 2024 23:28:28 +0100 Subject: [PATCH] fix: StatCacheProxy get --- lib/backend/stat_cache_proxy.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/backend/stat_cache_proxy.dart b/lib/backend/stat_cache_proxy.dart index b14c913..2ccffdf 100755 --- a/lib/backend/stat_cache_proxy.dart +++ b/lib/backend/stat_cache_proxy.dart @@ -1,3 +1,5 @@ +import 'dart:async'; + import 'package:files/backend/database/model.dart'; import 'package:files/backend/providers.dart'; @@ -13,8 +15,9 @@ class StatCacheProxy { return stat; } - // TODO(@HrX03): is this correct? - // ignore: unawaited_futures - return _runtimeCache[path]!..fetchUpdate(); + final runtimeCache = _runtimeCache[path]; + await runtimeCache!.fetchUpdate(); + + return runtimeCache; } }