feat: able to delete all disabled channels

This commit is contained in:
JustSong
2023-10-14 17:25:48 +08:00
parent fbe9985f57
commit 824444244b
4 changed files with 13 additions and 8 deletions

View File

@@ -127,8 +127,8 @@ func DeleteChannel(c *gin.Context) {
return
}
func DeleteManuallyDisabledChannel(c *gin.Context) {
rows, err := model.DeleteChannelByStatus(common.ChannelStatusManuallyDisabled)
func DeleteDisabledChannel(c *gin.Context) {
rows, err := model.DeleteDisabledChannel()
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,