Skip to content

Commit

Permalink
fix: handle domain without egressPolicies
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Mar 1, 2024
1 parent e3b683b commit b0ba7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mods/ctl/src/commands/agents/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ import * as grpc from "@grpc/grpc-js"
import { CliUx, Command, Flags } from "@oclif/core"
import { BaseCommand } from "../../base"
import { capitalize, showPaginatedList, ShowTable } from "../../utils"
import { CommonConnect as CC } from "@routr/common"
import { CommonConnect as CC, CommonTypes as CT } from "@routr/common"
import { CLIError } from "@oclif/core/lib/errors"
import { CommandError } from "@oclif/core/lib/interfaces"
import { CommonTypes as CT } from "@routr/common"

export default class GetAgentsCommand extends BaseCommand {
static readonly description =
Expand Down
2 changes: 1 addition & 1 deletion mods/pgdata/src/mappers/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class DomainManager extends EntityManager {
...domain,
accessControlListRef: domain.accessControlList?.ref,
accessControlList: ACLManager.mapToDto(domain.accessControlList),
egressPolicies: domain.egressPolicies.map((policy) => ({
egressPolicies: domain.egressPolicies?.map((policy) => ({
rule: policy.rule,
numberRef: policy.numberRef,
number: NumberManager.mapToDtoWithoutTrunk(policy.number)
Expand Down

0 comments on commit b0ba7f1

Please sign in to comment.