Parcourir la source

fix: reset channel key in UpdateChannel function

CaIon il y a 8 mois
Parent
commit
93e7675bc3
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      controller/channel.go

+ 1 - 0
controller/channel.go

@@ -539,6 +539,7 @@ func UpdateChannel(c *gin.Context) {
 		})
 		return
 	}
+	channel.Key = ""
 	c.JSON(http.StatusOK, gin.H{
 		"success": true,
 		"message": "",