Skip to content

query by ___domain endpoint #4512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added endpoint to query by ___domain
  • Loading branch information
code-a-cola committed Apr 25, 2025
commit b60647795dc57fa360a5c81ffa941deec84337bb
2 changes: 1 addition & 1 deletion backend/internal/proxy-host.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const internalProxyHost = {
let query = proxyHostModel
.query()
.where('is_deleted', 0)
.andWhereRaw("domain_names::jsonb @> ?::jsonb", [JSON.stringify([data.___domain])])
.andWhereRaw('domain_names::jsonb @> ?::jsonb', [JSON.stringify([data.___domain])])
.allowGraph('[owner,access_list.[clients,items],certificate]')
.modify(function(queryBuilder) {
if (data.expand) {
Expand Down