Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
muntaxir4 committed Dec 29, 2024
1 parent 1bfac4c commit 62c5751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/api/src/common/collective-authorities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const getCollectiveProjectAuthorities = async (
*/
export const getCollectiveEnvironmentAuthorities = async (
userId: User['id'],
environemnt: EnvironmentWithProject,
environment: EnvironmentWithProject,
prisma: PrismaClient
): Promise<Set<Authority>> => {
const authorities = new Set<Authority>()
Expand All @@ -117,7 +117,7 @@ export const getCollectiveEnvironmentAuthorities = async (
where: {
workspaceMember: {
userId,
workspaceId: environemnt.project.workspaceId
workspaceId: environment.project.workspaceId
}
},
select: {
Expand All @@ -136,10 +136,10 @@ export const getCollectiveEnvironmentAuthorities = async (
const environmentRoleAssociations =
await prisma.projectWorkspaceRoleAssociation.findMany({
where: {
projectId: environemnt.project.id,
projectId: environment.project.id,
environments: {
some: {
id: environemnt.id
id: environment.id
}
}
},
Expand Down

0 comments on commit 62c5751

Please sign in to comment.