Migrate "Post.GetPostsSince" to Sync by default #10976 (#11129)

* Migrate "Post.GetPostsSince" to Sync by default #10976

* Update GetPostsSince to Sync by default #10976

* Update GetPostsSince to Sync by default #10976

* Update GetPostsSince to Sync by default #10976
Этот коммит содержится в:
Taufiq Rahman
2019-06-14 19:22:47 +06:00
коммит произвёл Harrison Healey
родитель 1f02b0ce72
Коммит e101e1c020
5 изменённых файлов: 64 добавлений и 67 удалений

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

@@ -615,11 +615,7 @@ func (a *App) GetPostsEtag(channelId string) string {
}
func (a *App) GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError) {
result := <-a.Srv.Store.Post().GetPostsSince(channelId, time, true)
if result.Err != nil {
return nil, result.Err
}
return result.Data.(*model.PostList), nil
return a.Srv.Store.Post().GetPostsSince(channelId, time, true)
}
func (a *App) GetSinglePost(postId string) (*model.Post, *model.AppError) {