MM-15847 migrating getFlaggedPosts to sync by default (#10995)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
28d668cd91
Коммит
9f4c703f1e
@@ -140,19 +140,28 @@ func (_m *PostStore) GetEtag(channelId string, allowFromCache bool) store.StoreC
|
||||
}
|
||||
|
||||
// GetFlaggedPosts provides a mock function with given fields: userId, offset, limit
|
||||
func (_m *PostStore) GetFlaggedPosts(userId string, offset int, limit int) store.StoreChannel {
|
||||
func (_m *PostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError) {
|
||||
ret := _m.Called(userId, offset, limit)
|
||||
|
||||
var r0 store.StoreChannel
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
|
||||
var r0 *model.PostList
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) *model.PostList); ok {
|
||||
r0 = rf(userId, offset, limit)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(store.StoreChannel)
|
||||
r0 = ret.Get(0).(*model.PostList)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) *model.AppError); ok {
|
||||
r1 = rf(userId, offset, limit)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetFlaggedPostsForChannel provides a mock function with given fields: userId, channelId, offset, limit
|
||||
|
||||
Ссылка в новой задаче
Block a user