feat(channels): add auto-disable-only channel test mode (#6728)
This commit is contained in:
@@ -1049,6 +1049,9 @@ func selectChannelsForAutomaticTest(channels []*model.Channel, mode string) []*m
|
||||
if channel.Status == common.ChannelStatusManuallyDisabled {
|
||||
continue
|
||||
}
|
||||
if mode == operation_setting.ChannelTestModeAutoBanOnly && !channel.GetAutoBan() {
|
||||
continue
|
||||
}
|
||||
if mode == operation_setting.ChannelTestModePassiveRecovery && channel.Status != common.ChannelStatusAutoDisabled {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user