MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / DeleteChannelByStatus

Function DeleteChannelByStatus

model/channel.go:705–708  ·  view source on GitHub ↗
(status int64)

Source from the content-addressed store, hash-verified

703}
704
705func DeleteChannelByStatus(status int64) (int64, error) {
706 result := DB.Where("status = ?", status).Delete(&Channel{})
707 return result.RowsAffected, result.Error
708}
709
710func DeleteDisabledChannel() (int64, error) {
711 result := DB.Where("status = ? or status = ?", common.ChannelStatusAutoDisabled, common.ChannelStatusManuallyDisabled).Delete(&Channel{})

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.45

Tested by

no test coverage detected