Migrate "Post.GetPostsByIds" to Sync by default (#11034)
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
a57e042dab
Коммит
b26e5d444e
@@ -350,19 +350,28 @@ func (_m *PostStore) GetPostsBefore(channelId string, postId string, numPosts in
|
||||
}
|
||||
|
||||
// GetPostsByIds provides a mock function with given fields: postIds
|
||||
func (_m *PostStore) GetPostsByIds(postIds []string) store.StoreChannel {
|
||||
func (_m *PostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError) {
|
||||
ret := _m.Called(postIds)
|
||||
|
||||
var r0 store.StoreChannel
|
||||
if rf, ok := ret.Get(0).(func([]string) store.StoreChannel); ok {
|
||||
var r0 []*model.Post
|
||||
if rf, ok := ret.Get(0).(func([]string) []*model.Post); ok {
|
||||
r0 = rf(postIds)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(store.StoreChannel)
|
||||
r0 = ret.Get(0).([]*model.Post)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func([]string) *model.AppError); ok {
|
||||
r1 = rf(postIds)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetPostsCreatedAt provides a mock function with given fields: channelId, time
|
||||
|
||||
Ссылка в новой задаче
Block a user