hound happy

pull/14309/head
Simon Martín 6 years ago
parent d6bb953b1b
commit 86330d8ece

@ -320,7 +320,7 @@ module Carto
return unless databases.present?
databases[:tables].each do |table|
if (!check_table(table) && !check_view(table))
if !check_table(table) && !check_view(table)
raise Carto::UnprocesableEntityError.new("relation \"#{table[:schema]}.#{table[:name]}\" does not exist")
end
end

@ -165,7 +165,7 @@ describe Carto::ApiKey do
CREATE VIEW "#{@table1.database_schema}".#{view_name} AS (
SELECT * FROM #{@table1.name}
)
};
}
@user1.in_database.run(query)
grants = [apis_grant(['sql']), database_grant(@carto_user1.database_schema, view_name)]

Loading…
Cancel
Save