Skip to content

Commit

Permalink
FIX: исправляет ошибку удаления ControlPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
owlscatcher committed Feb 19, 2024
1 parent bbc36d7 commit ac9785b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/admin/control_point_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def update

def destroy
assigned_models_count =
Room.where(control_point_id: params[:id]).count +
Device.where(control_point_id: params[:id]).count +
Channel.where(control_point_id: params[:id]).count

if assigned_models_count.zero?
Expand Down

0 comments on commit ac9785b

Please sign in to comment.