mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
Bug fix
This commit is contained in:
@@ -304,7 +304,7 @@ func DeleteUser(user *User) error {
|
||||
}
|
||||
|
||||
// Delete all watches.
|
||||
if _, err = orm.Delete(&Watch{Uid: user.Id}); err != nil {
|
||||
if _, err = orm.Delete(&Watch{UserId: user.Id}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user