GH-10932 Migrate 'Session.UpdateLastActivityAt' to Sync by default (#11078)

* Migrate Session.UpdateLastActivityAt to Sync by default

* GH-10932 fix tests

* GH-10932 update add session code
Этот коммит содержится в:
Marc Argent
2019-06-11 18:40:05 +01:00
коммит произвёл Jesús Espino
родитель cc834e74d4
Коммит b0ad3c10e9
6 изменённых файлов: 23 добавлений и 22 удалений

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

@@ -213,15 +213,15 @@ func (_m *SessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int
}
// UpdateLastActivityAt provides a mock function with given fields: sessionId, time
func (_m *SessionStore) UpdateLastActivityAt(sessionId string, time int64) store.StoreChannel {
func (_m *SessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError {
ret := _m.Called(sessionId, time)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
var r0 *model.AppError
if rf, ok := ret.Get(0).(func(string, int64) *model.AppError); ok {
r0 = rf(sessionId, time)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).(*model.AppError)
}
}