Skip to content

Commit

Permalink
Updated arg naming
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Oct 5, 2023
1 parent 00ffbed commit 53c9f39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions services/api/src/resources/organization/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ export const getOrganizationById: ResolverFn = async (
};

export const getOrganizationByName: ResolverFn = async (
organization,
name,
args,
{ sqlClientPool, hasPermission }
) => {
let orgName = args.organization;
if (organization) {
orgName = organization;
let orgName = args.name;
if (name) {
orgName = name;
}

const rows = await query(sqlClientPool, Sql.selectOrganizationByName(orgName));
Expand Down
2 changes: 1 addition & 1 deletion services/api/src/typeDefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ const typeDefs = gql`
Get an organization by its ID
"""
organizationById(organization: Int!): Organization
organizationByName(organization: String!): Organization
organizationByName(name: String!): Organization
getGroupProjectOrganizationAssociation(input: AddGroupInput!): String
getProjectGroupOrganizationAssociation(input: ProjectOrgGroupsInput!): String
getEnvVariablesByProjectEnvironmentName(input: EnvVariableByProjectEnvironmentNameInput!): [EnvKeyValue]
Expand Down

0 comments on commit 53c9f39

Please sign in to comment.