1 Commits

Author SHA1 Message Date
coward
b1b49e2605 :art:修复下线客户端bug
All checks were successful
continuous-integration/drone/tag Build is passing
2024-06-07 08:47:47 +08:00

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
}