mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:57:31 +00:00
fix: add OrgIDQuery to the queries for organizations (#8312)
# Which Problems Are Solved ListOrgs has no option to select for organizations specific to Ids. # How the Problems Are Solved Add OrgIDQuery to ListOrgs. # Additional Changes Clean up double mapping for the OrgQueries. # Additional Context - noted internally while checking performance issues (in Console)
This commit is contained in:
@@ -281,6 +281,10 @@ func (q *Queries) SearchOrgs(ctx context.Context, queries *OrgSearchQueries) (or
|
||||
return orgs, err
|
||||
}
|
||||
|
||||
func NewOrgIDSearchQuery(value string) (SearchQuery, error) {
|
||||
return NewTextQuery(OrgColumnID, value, TextEquals)
|
||||
}
|
||||
|
||||
func NewOrgDomainSearchQuery(method TextComparison, value string) (SearchQuery, error) {
|
||||
return NewTextQuery(OrgColumnDomain, value, method)
|
||||
}
|
||||
|
Reference in New Issue
Block a user