Skip to content

Commit 61eeb6e

Browse files
committed
adjust endpoint get profile by app group name
1 parent 2e857e5 commit 61eeb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/v2/infrastructures_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def profile_by_cluster_name
5858

5959

6060
def profile_by_app_group_name
61-
@app_group = AppGroup.find_by(
61+
@app_group = AppGroup.active.find_by(
6262
name: params[:app_group_name],
6363
)
6464

0 commit comments

Comments
 (0)