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

Function GetAllEnableAbilityWithChannels

model/ability.go:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func GetAllEnableAbilityWithChannels() ([]AbilityWithChannel, error) {
31 var abilities []AbilityWithChannel
32 err := DB.Table("abilities").
33 Select("abilities.*, channels.type as channel_type").
34 Joins("left join channels on abilities.channel_id = channels.id").
35 Where("abilities.enabled = ?", true).
36 Scan(&abilities).Error
37 return abilities, err
38}
39
40func GetGroupEnabledModels(group string) []string {
41 var models []string

Callers 1

updatePricingFunction · 0.85

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected