Skip to content

Commit

Permalink
changed checks condition from env to utils.OutputEnv
Browse files Browse the repository at this point in the history
Signed-off-by: Yaten Dhingra <[email protected]>
  • Loading branch information
yaten2302 committed Jan 1, 2025
1 parent 1b7a0d8 commit 81657b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/branches/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ func Run(ctx context.Context, branchId string, env string, config pgconn.Config,
}

table := "|HOST|PORT|USER|PASSWORD|JWT SECRET|POSTGRES VERSION|STATUS|"
if env == "env" {
if env == utils.OutputEnv {
table += "|POSTGRES_USER_ENV|"
}

table += "\n|-|-|-|-|-|-|-|"
if env == "env" {
if env == utils.OutputEnv {
table += "-|"
}

Expand All @@ -54,7 +54,7 @@ func Run(ctx context.Context, branchId string, env string, config pgconn.Config,
resp.JSON200.PostgresVersion,
resp.JSON200.Status,
)
if env == "env" {
if env == utils.OutputEnv {
row += fmt.Sprintf("`%s`|", bootstrap.GetPostgresURLNonPooling(config, fsys))
}
table += row + "\n"
Expand Down

0 comments on commit 81657b0

Please sign in to comment.