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