Fix: Better type checking

This commit is contained in:
Daniel Hougaard
2024-03-17 18:49:29 +01:00
parent 2bd9914373
commit c3a56f469a
7 changed files with 30 additions and 25 deletions
@@ -30,7 +30,7 @@ export const projectRoleServiceFactory = ({ projectRoleDAL, permissionService }:
projectId: string,
data: Omit<TProjectRolesInsert, "projectId">,
actorAuthMethod: ActorAuthMethod,
actorOrgId?: string
actorOrgId: string | undefined
) => {
const { permission } = await permissionService.getProjectPermission(
actor,
@@ -57,7 +57,7 @@ export const projectRoleServiceFactory = ({ projectRoleDAL, permissionService }:
roleId: string,
data: Omit<TOrgRolesUpdate, "orgId">,
actorAuthMethod: ActorAuthMethod,
actorOrgId?: string
actorOrgId: string | undefined
) => {
const { permission } = await permissionService.getProjectPermission(
actor,
@@ -86,7 +86,7 @@ export const projectRoleServiceFactory = ({ projectRoleDAL, permissionService }:
projectId: string,
roleId: string,
actorAuthMethod: ActorAuthMethod,
actorOrgId?: string
actorOrgId: string | undefined
) => {
const { permission } = await permissionService.getProjectPermission(
actor,
@@ -107,7 +107,7 @@ export const projectRoleServiceFactory = ({ projectRoleDAL, permissionService }:
actorId: string,
projectId: string,
actorAuthMethod: ActorAuthMethod,
actorOrgId?: string
actorOrgId: string | undefined
) => {
const { permission } = await permissionService.getProjectPermission(
actor,
@@ -172,7 +172,7 @@ export const projectRoleServiceFactory = ({ projectRoleDAL, permissionService }:
userId: string,
projectId: string,
actorAuthMethod: ActorAuthMethod,
actorOrgId?: string
actorOrgId: string | undefined
) => {
const { permission, membership } = await permissionService.getUserProjectPermission(
userId,