()
| 398 | } |
| 399 | |
| 400 | func (channel *Channel) Insert() error { |
| 401 | var err error |
| 402 | err = DB.Create(channel).Error |
| 403 | if err != nil { |
| 404 | return err |
| 405 | } |
| 406 | err = channel.AddAbilities() |
| 407 | return err |
| 408 | } |
| 409 | |
| 410 | func (channel *Channel) Update() error { |
| 411 | // If this is a multi-key channel, recalculate MultiKeySize based on the current key list to avoid inconsistency after editing keys |
nothing calls this directly
no test coverage detected