mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
Added some errors accuracy on del article handler
This commit is contained in:
@@ -68,7 +68,11 @@ func DeleteArticleHandler(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
SendOk(c, fmt.Sprintf("%d articles were successfully deleted!", deleteCount))
|
||||
if deleteCount != 0 {
|
||||
SendOk(c, fmt.Sprintf("%d articles were successfully deleted!", deleteCount))
|
||||
} else {
|
||||
SendOk(c, "No articles were deleted.")
|
||||
}
|
||||
}
|
||||
|
||||
func EditArticleHandler(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user