Skip to content

Commit

Permalink
bug create alarm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesaurio committed Mar 3, 2017
1 parent 3c54e13 commit a7c2616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-app/app/controllers/alarms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def dasboard
end

def create
if get_alarm(params[:dashboard]
if get_alarm(params[:dashboard])
alarm = Alarm.find(get_alarm(params[:dashboard][:message]))
ApiGeneralHazards.perform_async(alarm.id, params[:dashboard][:description])
flash[:notice] = t("alert.sent")
Expand Down

0 comments on commit a7c2616

Please sign in to comment.