mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 16:36:37 +08:00
fix: 删除用户改为软删除 (close #107)
This commit is contained in:
parent
7ab6c6c303
commit
bf241b218f
@ -683,7 +683,7 @@ func ManageUser(c *gin.Context) {
|
||||
})
|
||||
return
|
||||
}
|
||||
if err := user.HardDelete(); err != nil {
|
||||
if err := user.Delete(); err != nil {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
"message": err.Error(),
|
||||
|
Loading…
Reference in New Issue
Block a user