aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Search/API/Controllers/SearchesController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-07-17 10:50:59 -0500
committerGitHub <noreply@github.com>2022-07-17 10:50:59 -0500
commitd4b0fad9cb82e70cc10a1f6189fa17c1a65c9c46 (patch)
tree7a220a49d14498c49f14aeda78265a4fe96b5c57 /src/slskd/Search/API/Controllers/SearchesController.cs
parent19174cc478118010e6e39098fd2aa4e5a570a03f (diff)
parent58626e1e8f954160fc86f4c15f437c6698bf49db (diff)
downloadslskd-d4b0fad9cb82e70cc10a1f6189fa17c1a65c9c46.tar.gz
Merge pull request #550 from slskd/search-status
Persist search status to the database as the search is running
Diffstat (limited to 'src/slskd/Search/API/Controllers/SearchesController.cs')
-rw-r--r--src/slskd/Search/API/Controllers/SearchesController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Search/API/Controllers/SearchesController.cs b/src/slskd/Search/API/Controllers/SearchesController.cs
index 57ddfc13..acae18e0 100644
--- a/src/slskd/Search/API/Controllers/SearchesController.cs
+++ b/src/slskd/Search/API/Controllers/SearchesController.cs
@@ -68,7 +68,7 @@ namespace slskd.Search.API
try
{
- search = await Searches.CreateAsync(id, SearchQuery.FromText(request.SearchText), SearchScope.Network, request.ToSearchOptions());
+ search = await Searches.StartAsync(id, SearchQuery.FromText(request.SearchText), SearchScope.Network, request.ToSearchOptions());
}
catch (Exception ex) when (ex is ArgumentException || ex is Soulseek.DuplicateTokenException)
{