MM-15843 migrating post.GetSingle() to sync by default (#10992)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
8ff58a07bd
Коммит
427effcd5c
@@ -380,19 +380,28 @@ func (_m *PostStore) GetRepliesForExport(parentId string) store.StoreChannel {
|
||||
}
|
||||
|
||||
// GetSingle provides a mock function with given fields: id
|
||||
func (_m *PostStore) GetSingle(id string) store.StoreChannel {
|
||||
func (_m *PostStore) GetSingle(id string) (*model.Post, *model.AppError) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
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(id)
|
||||
} 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(id)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// InvalidateLastPostTimeCache provides a mock function with given fields: channelId
|
||||
|
||||
Ссылка в новой задаче
Block a user