MM-15289 Migrate command.GetByTeam to sync by default (#10740)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
214e9d2ae0
Коммит
171058eb3d
@@ -62,19 +62,28 @@ func (_m *CommandStore) Get(id string) store.StoreChannel {
|
||||
}
|
||||
|
||||
// GetByTeam provides a mock function with given fields: teamId
|
||||
func (_m *CommandStore) GetByTeam(teamId string) store.StoreChannel {
|
||||
func (_m *CommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError) {
|
||||
ret := _m.Called(teamId)
|
||||
|
||||
var r0 store.StoreChannel
|
||||
if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
|
||||
var r0 []*model.Command
|
||||
if rf, ok := ret.Get(0).(func(string) []*model.Command); ok {
|
||||
r0 = rf(teamId)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(store.StoreChannel)
|
||||
r0 = ret.Get(0).([]*model.Command)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string) *model.AppError); ok {
|
||||
r1 = rf(teamId)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetByTrigger provides a mock function with given fields: teamId, trigger
|
||||
|
||||
Ссылка в новой задаче
Block a user