Fix: Better type checking

This commit is contained in:
Daniel Hougaard
2024-03-12 15:41:49 +01:00
parent 92fd2d080d
commit 7e2685d604

View File

@@ -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<TProjectPermissionRT<T>> => {
switch (type) {
case ActorType.USER: