Updated permanentDelete to receive user context as the first argument (#26884)
Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6aa92d149
Коммит
5746bb8df3
@@ -11036,10 +11036,10 @@ func (s *TimerLayerUserStore) IsEmpty(excludeBots bool) (bool, error) {
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerUserStore) PermanentDelete(userID string) error {
|
||||
func (s *TimerLayerUserStore) PermanentDelete(rctx request.CTX, userID string) error {
|
||||
start := time.Now()
|
||||
|
||||
err := s.UserStore.PermanentDelete(userID)
|
||||
err := s.UserStore.PermanentDelete(rctx, userID)
|
||||
|
||||
elapsed := float64(time.Since(start)) / float64(time.Second)
|
||||
if s.Root.Metrics != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user