Skip to content
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
added endpoint to query by domain
  • Loading branch information
code-a-cola committed Apr 28, 2025
commit 549408f448e6e96b387bd3f11ec25702133b9d2e
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])])
.andWhere(castJsonIfNeed('domain_names'), 'like', '%' + data.domain + '%')
.allowGraph('[owner,access_list.[clients,items],certificate]')
.modify(function(queryBuilder) {
if (data.expand) {
Expand Down