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