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

Function UpdateAbilityStatusByTag

model/ability.go:297–299  ·  view source on GitHub ↗
(tag string, status bool)

Source from the content-addressed store, hash-verified

295}
296
297func UpdateAbilityStatusByTag(tag string, status bool) error {
298 return DB.Model(&Ability{}).Where("tag = ?", tag).Select("enabled").Update("enabled", status).Error
299}
300
301func UpdateAbilityByTag(tag string, newTag *string, priority *int64, weight *uint) error {
302 ability := Ability{}

Callers 2

EnableChannelByTagFunction · 0.85
DisableChannelByTagFunction · 0.85

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected