Able to transfer channel between realms

This commit is contained in:
2025-02-16 20:27:04 +08:00
parent 256c494ad0
commit a268b7958c
2 changed files with 34 additions and 13 deletions

View File

@ -274,13 +274,7 @@ func NewChannel(channel models.Channel) (models.Channel, error) {
return channel, err
}
func EditChannel(channel models.Channel, alias, name, description string, isPublic, isCommunity bool) (models.Channel, error) {
channel.Alias = alias
channel.Name = name
channel.Description = description
channel.IsPublic = isPublic
channel.IsCommunity = isCommunity
func EditChannel(channel models.Channel) (models.Channel, error) {
err := database.C.Save(&channel).Error
if err == nil {