Skip to content

Commit

Permalink
Merge pull request #3566 from uselagoon/project_org_update
Browse files Browse the repository at this point in the history
Change: Resolver rename
  • Loading branch information
tobybellwood authored Oct 11, 2023
2 parents 3873114 + 1aace13 commit 3017c18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions services/api/src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const {
getGroupsByNameAndOrganizationId,
getOwnersByOrganizationId,
getProjectsByOrganizationId,
addProjectToOrganization,
addExistingProjectToOrganization,
removeProjectFromOrganization,
addExistingGroupToOrganization,
getGroupsByOrganizationsProject,
Expand Down Expand Up @@ -708,7 +708,7 @@ const resolvers = {
deleteOrganization,
addGroupToOrganization: addGroup,
addExistingGroupToOrganization,
addProjectToOrganization,
addExistingProjectToOrganization,
removeProjectFromOrganization,
addDeployTargetToOrganization,
removeDeployTargetFromOrganization,
Expand Down
4 changes: 2 additions & 2 deletions services/api/src/resources/organization/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ export const removeProjectFromOrganization: ResolverFn = async (
}

// add existing project to an organization
export const addProjectToOrganization: ResolverFn = async (
export const addExistingProjectToOrganization: ResolverFn = async (
root,
{ input },
{ sqlClientPool, hasPermission, userActivityLogger, models, keycloakGroups }
Expand Down Expand Up @@ -784,7 +784,7 @@ export const addProjectToOrganization: ResolverFn = async (
userActivityLogger(`User added a project to organization`, {
project: '',
organization: input.organization,
event: 'api:addProjectToOrganization',
event: 'api:addExistingProjectToOrganization',
payload: {
data: {
project: pid,
Expand Down
4 changes: 2 additions & 2 deletions services/api/src/typeDefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2431,9 +2431,9 @@ const typeDefs = gql`
"""
addExistingGroupToOrganization(input: AddGroupToOrganizationInput!): OrgGroupInterface
"""
Add a project to an organization, will return an error if it can't easily do it
Add an existing project to an organization
"""
addProjectToOrganization(input: AddProjectToOrganizationInput): Project
addExistingProjectToOrganization(input: AddProjectToOrganizationInput): Project
"""
Remove a project from an organization, this will return the project to a state where it has no groups or notifications associated to it
"""
Expand Down

0 comments on commit 3017c18

Please sign in to comment.