This commit is contained in:
parent
24ee99e33a
commit
b1b49e2605
@ -229,5 +229,5 @@ func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err er
|
||||
// @param id
|
||||
// @return err
|
||||
func (r clientRepo) Disabled(id string) (err error) {
|
||||
return r.Model(&entity.Client{}).Where("id = ?", id).Update("status", 0).Error
|
||||
return r.Model(&entity.Client{}).Where("id = ?", id).Update("enabled", 0).Error
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user