Updated permanentDelete to receive user context as the first argument (#26884)
Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6aa92d149
Коммит
5746bb8df3
@@ -1337,7 +1337,7 @@ func (us SqlUserStore) VerifyEmail(userId, email string) (string, error) {
|
||||
return userId, nil
|
||||
}
|
||||
|
||||
func (us SqlUserStore) PermanentDelete(userId string) error {
|
||||
func (us SqlUserStore) PermanentDelete(rctx request.CTX, userId string) error {
|
||||
if _, err := us.GetMasterX().Exec("DELETE FROM Users WHERE Id = ?", userId); err != nil {
|
||||
return errors.Wrapf(err, "failed to delete User with userId=%s", userId)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user