Added the SearchPostsInTeam method to the plugin API (#10106)

Этот коммит содержится в:
Andrew Braunstein
2019-02-12 22:41:32 -08:00
коммит произвёл Hanzei
родитель 87e36a3ecf
Коммит c08fda1337
11 изменённых файлов: 197 добавлений и 31 удалений

Просмотреть файл

@@ -394,7 +394,7 @@ func searchPosts(c *Context, w http.ResponseWriter, r *http.Request) {
startTime := time.Now()
results, err := c.App.SearchPostsInTeam(terms, c.App.Session.UserId, c.Params.TeamId, isOrSearch, includeDeletedChannels, int(timeZoneOffset), page, perPage)
results, err := c.App.SearchPostsInTeamForUser(terms, c.App.Session.UserId, c.Params.TeamId, isOrSearch, includeDeletedChannels, int(timeZoneOffset), page, perPage)
elapsedTime := float64(time.Since(startTime)) / float64(time.Second)
metrics := c.App.Metrics