|
@@ -164,7 +164,7 @@ func (r *globalLimitRepository) GetNodeArea(ctx context.Context, nodeAreaName st
|
|
|
}
|
|
|
|
|
|
func (r *globalLimitRepository) EditHostState(ctx context.Context, hostId int64, state int) error {
|
|
|
- if err := r.DB(ctx).Where("host_id = ?", hostId).Update("state", state).Error; err != nil {
|
|
|
+ if err := r.DB(ctx).Model(&model.GlobalLimit{}).Where("host_id = ?", hostId).Update("state", state).Error; err != nil {
|
|
|
return err
|
|
|
}
|
|
|
return nil
|