diff --git a/websocket-gateway/lib/jam_websockets/router.rb b/websocket-gateway/lib/jam_websockets/router.rb index b616ca98b..5aecbe467 100644 --- a/websocket-gateway/lib/jam_websockets/router.rb +++ b/websocket-gateway/lib/jam_websockets/router.rb @@ -1002,8 +1002,7 @@ product'] puts "O/S = #{os}" puts "=========================" # if we have OS data, try to grab client update data and let the client have it - update = ArtifactUpdate.find_client_by_os(product, os) if client_type == Connection: - :TYPE_CLIENT && os + update = ArtifactUpdate.find_client_by_os(product, os) if client_type == Connection::TYPE_CLIENT && os client_update = update.update_data if update @@ -1053,8 +1052,7 @@ product'] end end # if we have OS data, try to grab client update data and let the client have it - update = ArtifactUpdate.find_client_by_os(product, os) if client_type == Connection: - :TYPE_CLIENT && os + update = ArtifactUpdate.find_client_by_os(product, os) if client_type == Connection::TYPE_CLIENT && os client_update = update.update_data if update