Skip to content

Commit

Permalink
Make license endpoint return number of nodes in existing orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahsnapp committed Aug 12, 2015
1 parent 6d4eb10 commit eb95cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oc_erchef/apps/chef_db/priv/pgsql_statements.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{ping, <<"SELECT 'pong' as ping LIMIT 1">>}.

%% Query to count the number of nodes for license checks
{count_nodes, <<"SELECT COUNT(*) as count FROM nodes">>}.
{count_nodes, <<"SELECT COUNT(*) FROM nodes INNER JOIN orgs ON nodes.org_id = orgs.id;">>}.


{find_node_by_orgid_name,
Expand Down

0 comments on commit eb95cfa

Please sign in to comment.