From 7e2685d60448d86dc1a0050f34f911b889cd1fd8 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:41:49 +0100 Subject: [PATCH] Fix: Better type checking --- backend/src/ee/services/permission/permission-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/ee/services/permission/permission-service.ts b/backend/src/ee/services/permission/permission-service.ts index e6f0f5a2b..737571fad 100644 --- a/backend/src/ee/services/permission/permission-service.ts +++ b/backend/src/ee/services/permission/permission-service.ts @@ -135,7 +135,7 @@ export const permissionServiceFactory = ({ id: string, orgId: string, authMethod: ActorAuthMethod, - actorOrgId?: string + actorOrgId: string | undefined ) => { switch (type) { case ActorType.USER: @@ -259,7 +259,7 @@ export const permissionServiceFactory = ({ id: string, projectId: string, actorAuthMethod: ActorAuthMethod, - actorOrgId?: string + actorOrgId: string | undefined ): Promise> => { switch (type) { case ActorType.USER: