Skip to content

Commit

Permalink
update user delete 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fchrgrib committed Jun 15, 2023
1 parent 1eaeed7 commit 7ec6e3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions controllers/profile/UserDelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ func UserDelete(c *gin.Context) {
return
}
}
}

if err := db.Table("wallpaper_collect").Delete(wallpaperCollections).Error; err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"status": err.Error(),
})
return
if err := db.Table("wallpaper_collect").Delete(wallpaperCollections).Error; err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"status": err.Error(),
})
return
}
}

if err := db.Table("user").Delete(userDelete).Error; err != nil {
Expand Down

3 comments on commit 7ec6e3c

@vercel
Copy link

@vercel vercel bot commented on 7ec6e3c Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7ec6e3c Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7ec6e3c Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.