@@ -129,7 +129,7 @@ func (g *projectRepository) ListSubProjectsAndAssets(
129129 var q * gorm.DB
130130
131131 assetQuery := g .GetDB (ctx , tx ).Model (& models.Asset {}).
132- Select ("'asset' AS type , id, name, slug, description, project_id, NULL::uuid AS parent_id, NULL::uuid AS organization_id, is_public, state, created_at, updated_at" ).
132+ Select ("'asset' AS resource_type , id, name, slug, description, project_id, NULL::uuid AS parent_id, NULL::uuid AS organization_id, is_public, state, created_at, updated_at" ).
133133 Where ("project_id = ?" , parentID )
134134
135135 if len (allowedAssetIDs ) > 0 {
@@ -139,7 +139,7 @@ func (g *projectRepository) ListSubProjectsAndAssets(
139139 }
140140
141141 projectQuery := g .GetDB (ctx , tx ).Model (& models.Project {}).
142- Select ("'project' AS type , id, name, slug, description, NULL::uuid AS project_id, parent_id, organization_id, is_public, state, created_at, updated_at" ).
142+ Select ("'project' AS resource_type , id, name, slug, description, NULL::uuid AS project_id, parent_id, organization_id, is_public, state, created_at, updated_at" ).
143143 Where ("parent_id = ?" , parentID )
144144
145145 if len (allowedProjectIDs ) > 0 {
0 commit comments