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