mirror of
https://gitee.com/gitea/gitea
synced 2025-11-17 06:50:24 +08: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