aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/API/Controllers/SharesController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-08-23 08:07:23 -0500
committerJP Dillingham <jp@dillingham.me>2022-08-23 08:07:23 -0500
commit87c0d6625a1e8ad39be3035c7139116121cc15e4 (patch)
tree44f540e2397c218d340313dbf3b1a489f3a10f4a /src/slskd/Shares/API/Controllers/SharesController.cs
parent6f79ad6b6d2bed8fd88c43aadc621e407ad60449 (diff)
downloadslskd-87c0d6625a1e8ad39be3035c7139116121cc15e4.tar.gz
use configured shares instead of cached
Diffstat (limited to 'src/slskd/Shares/API/Controllers/SharesController.cs')
-rw-r--r--src/slskd/Shares/API/Controllers/SharesController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Shares/API/Controllers/SharesController.cs b/src/slskd/Shares/API/Controllers/SharesController.cs
index 56023925..12a1c7b2 100644
--- a/src/slskd/Shares/API/Controllers/SharesController.cs
+++ b/src/slskd/Shares/API/Controllers/SharesController.cs
@@ -59,7 +59,7 @@ namespace slskd.Shares.API
{
var browse = await Shares.BrowseAsync();
- var summary = Shares.CachedShares.Select(share =>
+ var summary = Shares.Shares.Select(share =>
{
var directories = browse.Where(directory => directory.Name.StartsWith(share.RemotePath));
var fileCount = directories.Aggregate(seed: 0, (sum, directory) =>