🎨修复下线客户端bug
This commit is contained in:
@@ -229,5 +229,5 @@ func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err er
|
|||||||
// @param id
|
// @param id
|
||||||
// @return err
|
// @return err
|
||||||
func (r clientRepo) Disabled(id string) (err error) {
|
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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user