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

Function GetRootUser

model/user.go:731–734  ·  view source on GitHub ↗

func GetRootUserEmail() (email string) { DB.Model(&User{}).Where("role = ?", common.RoleRootUser).Select("email").Find(&email) return email }

()

Source from the content-addressed store, hash-verified

729//}
730
731func GetRootUser() (user *User) {
732 DB.Where("role = ?", common.RoleRootUser).First(&user)
733 return user
734}
735
736func UpdateUserUsedQuotaAndRequestCount(id int, quota int) {
737 if common.BatchUpdateEnabled {

Callers 1

NotifyRootUserFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected