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

Method FillUserByLinuxDOId

model/user.go:815–821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

813}
814
815func (user *User) FillUserByLinuxDOId() error {
816 if user.LinuxDOId == "" {
817 return errors.New("linux do id is empty")
818 }
819 err := DB.Where("linux_do_id = ?", user.LinuxDOId).First(user).Error
820 return err
821}
822
823func RootUserExists() bool {
824 var user User

Callers 1

LinuxdoOAuthFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected