🎨修复下线客户端bug
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-06-07 08:47:47 +08:00
parent 24ee99e33a
commit b1b49e2605

View File

@ -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
}