[MM-15802] Migrate "Session.UpdateDeviceId" to Sync by default (#11017)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
201fb5a717
Коммит
4cfe61393b
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user