[MM-15356] Migrate "Channel.Update" to Sync by default (#10815)

Этот коммит содержится в:
Shota Gvinepadze
2019-05-15 01:02:04 +04:00
коммит произвёл Hanzei
родитель 3bb11d747d
Коммит b561d7900c
9 изменённых файлов: 66 добавлений и 69 удалений

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

@@ -1050,19 +1050,28 @@ func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt i
}
// Update provides a mock function with given fields: channel
func (_m *ChannelStore) Update(channel *model.Channel) store.StoreChannel {
func (_m *ChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError) {
ret := _m.Called(channel)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(*model.Channel) store.StoreChannel); ok {
var r0 *model.Channel
if rf, ok := ret.Get(0).(func(*model.Channel) *model.Channel); ok {
r0 = rf(channel)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).(*model.Channel)
}
}
return r0
var r1 *model.AppError
if rf, ok := ret.Get(1).(func(*model.Channel) *model.AppError); ok {
r1 = rf(channel)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*model.AppError)
}
}
return r0, r1
}
// UpdateLastViewedAt provides a mock function with given fields: channelIds, userId