Skip to content

Commit

Permalink
Merge pull request #3166 from uselagoon/project-default-group-annotation
Browse files Browse the repository at this point in the history
fix: add group-lagoon-project-ids to project-default groups
  • Loading branch information
tobybellwood authored Jun 3, 2022
2 parents b0dd3bf + 634ba91 commit 0653c15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/api/src/resources/project/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ export const addProject = async (
name: `project-${project.name}`,
attributes: {
type: ['project-default-group'],
'lagoon-projects': [project.id]
'lagoon-projects': [project.id],
'group-lagoon-project-ids': [`{${JSON.stringify(`project-${project.name}`)}:[${project.id}]}`]
}
});
} catch (err) {
Expand Down

0 comments on commit 0653c15

Please sign in to comment.