MM - 15795 Migrate "Session.GetSessions" to Sync by default (#11000)

Этот коммит содержится в:
KimSeungHyeon
2019-06-04 13:15:31 +09:00
коммит произвёл Hanzei
родитель 9c9d510a73
Коммит 367ffbfb42
5 изменённых файлов: 46 добавлений и 49 удалений

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

@@ -67,19 +67,28 @@ func (_m *SessionStore) Get(sessionIdOrToken string) (*model.Session, *model.App
}
// GetSessions provides a mock function with given fields: userId
func (_m *SessionStore) GetSessions(userId string) store.StoreChannel {
func (_m *SessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError) {
ret := _m.Called(userId)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
var r0 []*model.Session
if rf, ok := ret.Get(0).(func(string) []*model.Session); ok {
r0 = rf(userId)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).([]*model.Session)
}
}
return r0
var r1 *model.AppError
if rf, ok := ret.Get(1).(func(string) *model.AppError); ok {
r1 = rf(userId)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*model.AppError)
}
}
return r0, r1
}
// GetSessionsWithActiveDeviceIds provides a mock function with given fields: userId