Skip to content

Commit

Permalink
fix: use previous secret if not given
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed May 23, 2023
1 parent b6f8da5 commit 0885559
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ func UpdateChannel(c *gin.Context) {
cleanChannel.Type = channel_.Type
cleanChannel.Name = channel_.Name
cleanChannel.Description = channel_.Description
cleanChannel.Secret = channel_.Secret
if channel_.Secret != "" {
cleanChannel.Secret = channel_.Secret
}
cleanChannel.AppId = channel_.AppId
cleanChannel.AccountId = channel_.AccountId
cleanChannel.URL = channel_.URL
Expand Down

0 comments on commit 0885559

Please sign in to comment.