Updated permanentDelete to receive user context as the first argument (#26884)
Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6aa92d149
Коммит
5746bb8df3
@@ -13977,11 +13977,11 @@ func (s *RetryLayerUserStore) IsEmpty(excludeBots bool) (bool, error) {
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerUserStore) PermanentDelete(userID string) error {
|
||||
func (s *RetryLayerUserStore) PermanentDelete(rctx request.CTX, userID string) error {
|
||||
|
||||
tries := 0
|
||||
for {
|
||||
err := s.UserStore.PermanentDelete(userID)
|
||||
err := s.UserStore.PermanentDelete(rctx, userID)
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user