()
| 215 | } |
| 216 | |
| 217 | func (channel *Channel) DeleteAbilities() error { |
| 218 | return DB.Where("channel_id = ?", channel.Id).Delete(&Ability{}).Error |
| 219 | } |
| 220 | |
| 221 | // UpdateAbilities updates abilities of this channel. |
| 222 | // Make sure the channel is completed before calling this function. |