|
@@ -30,7 +30,7 @@ func (c *UserService) Add(body *models.LdapUser) (*models.LdapUser, error) {
|
|
|
}
|
|
|
err = o.Read(&exist, "Account")
|
|
|
if err != nil && errors.Is(err, orm.ErrNoRows) {
|
|
|
- _, err = o.Insert(&body)
|
|
|
+ _, err = o.Insert(body)
|
|
|
} else if err != nil {
|
|
|
return nil, err
|
|
|
} else {
|