(tag string)
| 620 | } |
| 621 | |
| 622 | func EnableChannelByTag(tag string) error { |
| 623 | err := DB.Model(&Channel{}).Where("tag = ?", tag).Update("status", common.ChannelStatusEnabled).Error |
| 624 | if err != nil { |
| 625 | return err |
| 626 | } |
| 627 | err = UpdateAbilityStatusByTag(tag, true) |
| 628 | return err |
| 629 | } |
| 630 | |
| 631 | func DisableChannelByTag(tag string) error { |
| 632 | err := DB.Model(&Channel{}).Where("tag = ?", tag).Update("status", common.ChannelStatusManuallyDisabled).Error |
no test coverage detected