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

Function IsLinuxDOIdAlreadyTaken

model/user.go:809–813  ·  view source on GitHub ↗
(linuxDOId string)

Source from the content-addressed store, hash-verified

807}
808
809func IsLinuxDOIdAlreadyTaken(linuxDOId string) bool {
810 var user User
811 err := DB.Unscoped().Where("linux_do_id = ?", linuxDOId).First(&user).Error
812 return !errors.Is(err, gorm.ErrRecordNotFound)
813}
814
815func (user *User) FillUserByLinuxDOId() error {
816 if user.LinuxDOId == "" {

Callers 2

LinuxDoBindFunction · 0.92
LinuxdoOAuthFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected