diff --git a/services/api/src/resolvers.js b/services/api/src/resolvers.js index 42ad902c79..84d641d039 100644 --- a/services/api/src/resolvers.js +++ b/services/api/src/resolvers.js @@ -259,7 +259,7 @@ const { getGroupsByNameAndOrganizationId, getOwnersByOrganizationId, getProjectsByOrganizationId, - addProjectToOrganization, + addExistingProjectToOrganization, removeProjectFromOrganization, addExistingGroupToOrganization, getGroupsByOrganizationsProject, @@ -708,7 +708,7 @@ const resolvers = { deleteOrganization, addGroupToOrganization: addGroup, addExistingGroupToOrganization, - addProjectToOrganization, + addExistingProjectToOrganization, removeProjectFromOrganization, addDeployTargetToOrganization, removeDeployTargetFromOrganization, diff --git a/services/api/src/resources/organization/resolvers.ts b/services/api/src/resources/organization/resolvers.ts index 09b50ef4f1..9c03e2108e 100644 --- a/services/api/src/resources/organization/resolvers.ts +++ b/services/api/src/resources/organization/resolvers.ts @@ -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 } @@ -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, diff --git a/services/api/src/typeDefs.js b/services/api/src/typeDefs.js index c54805b1ee..47f08cd0cd 100644 --- a/services/api/src/typeDefs.js +++ b/services/api/src/typeDefs.js @@ -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 """