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

Function UpdateAbilityStatus

model/ability.go:293–295  ·  view source on GitHub ↗
(channelId int, status bool)

Source from the content-addressed store, hash-verified

291}
292
293func UpdateAbilityStatus(channelId int, status bool) error {
294 return DB.Model(&Ability{}).Where("channel_id = ?", channelId).Select("enabled").Update("enabled", status).Error
295}
296
297func UpdateAbilityStatusByTag(tag string, status bool) error {
298 return DB.Model(&Ability{}).Where("tag = ?", tag).Select("enabled").Update("enabled", status).Error

Callers 1

UpdateChannelStatusFunction · 0.85

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected