aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/SearchController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-29 19:29:35 +0800
committercrupest <crupest@outlook.com>2021-04-29 19:29:35 +0800
commitbf4c48980f81e566065c07f3fe534ce7551ebdcc (patch)
treeb34c57efd216c5b94845a298ffcb7480d773784c /BackEnd/Timeline/Controllers/SearchController.cs
parentfc9eb47119dd33d67c1e4daba18608bfb3355f54 (diff)
downloadtimeline-bf4c48980f81e566065c07f3fe534ce7551ebdcc.tar.gz
timeline-bf4c48980f81e566065c07f3fe534ce7551ebdcc.tar.bz2
timeline-bf4c48980f81e566065c07f3fe534ce7551ebdcc.zip
...
Diffstat (limited to 'BackEnd/Timeline/Controllers/SearchController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/SearchController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Controllers/SearchController.cs b/BackEnd/Timeline/Controllers/SearchController.cs
index 76f3d8f2..cd085e5b 100644
--- a/BackEnd/Timeline/Controllers/SearchController.cs
+++ b/BackEnd/Timeline/Controllers/SearchController.cs
@@ -42,7 +42,7 @@ namespace Timeline.Controllers
[ProducesResponseType(400)]
public async Task<ActionResult<List<HttpTimeline>>> TimelineSearch([FromQuery(Name = "q"), Required(AllowEmptyStrings = false)] string query)
{
- var searchResult = await _service.SearchTimeline(query);
+ var searchResult = await _service.SearchTimelineAsync(query);
var timelines = searchResult.Items.Select(i => i.Item).ToList();
return await Map(timelines);
}
@@ -57,7 +57,7 @@ namespace Timeline.Controllers
[ProducesResponseType(400)]
public async Task<ActionResult<List<HttpUser>>> UserSearch([FromQuery(Name = "q"), Required(AllowEmptyStrings = false)] string query)
{
- var searchResult = await _service.SearchUser(query);
+ var searchResult = await _service.SearchUserAsync(query);
var users = searchResult.Items.Select(i => i.Item).ToList();
return await _mapper.MapListAsync<HttpUser>(users, Url, User);
}