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

Method Insert

model/channel.go:400–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398}
399
400func (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
410func (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

Callers

nothing calls this directly

Calls 1

AddAbilitiesMethod · 0.95

Tested by

no test coverage detected