Fixes MM-50733 (#22784)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0af69b3411
Коммит
7325c38c39
@@ -5036,6 +5036,22 @@ func (s *TimerLayerOAuthStore) RemoveAuthDataByClientId(clientId string, userId
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerOAuthStore) RemoveAuthDataByUserId(userId string) error {
|
||||
start := time.Now()
|
||||
|
||||
err := s.OAuthStore.RemoveAuthDataByUserId(userId)
|
||||
|
||||
elapsed := float64(time.Since(start)) / float64(time.Second)
|
||||
if s.Root.Metrics != nil {
|
||||
success := "false"
|
||||
if err == nil {
|
||||
success = "true"
|
||||
}
|
||||
s.Root.Metrics.ObserveStoreMethodDuration("OAuthStore.RemoveAuthDataByUserId", success, elapsed)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error) {
|
||||
start := time.Now()
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user