[MM-15802] Migrate "Session.UpdateDeviceId" to Sync by default (#11017)

Этот коммит содержится в:
Bolarinwa Balogun
2019-06-03 10:16:50 -04:00
коммит произвёл Hanzei
родитель 201fb5a717
Коммит 4cfe61393b
5 изменённых файлов: 33 добавлений и 25 удалений

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

@@ -213,8 +213,9 @@ func (a *App) RevokeSession(session *model.Session) *model.AppError {
}
func (a *App) AttachDeviceId(sessionId string, deviceId string, expiresAt int64) *model.AppError {
if result := <-a.Srv.Store.Session().UpdateDeviceId(sessionId, deviceId, expiresAt); result.Err != nil {
return result.Err
_, err := a.Srv.Store.Session().UpdateDeviceId(sessionId, deviceId, expiresAt)
if err != nil {
return err
}
return nil