Fix: Better type checking

This commit is contained in:
Daniel Hougaard
2024-03-17 18:49:29 +01:00
parent 92fd2d080d
commit 7e2685d604
@@ -135,7 +135,7 @@ export const permissionServiceFactory = ({
id: string, id: string,
orgId: string, orgId: string,
authMethod: ActorAuthMethod, authMethod: ActorAuthMethod,
actorOrgId?: string actorOrgId: string | undefined
) => { ) => {
switch (type) { switch (type) {
case ActorType.USER: case ActorType.USER:
@@ -259,7 +259,7 @@ export const permissionServiceFactory = ({
id: string, id: string,
projectId: string, projectId: string,
actorAuthMethod: ActorAuthMethod, actorAuthMethod: ActorAuthMethod,
actorOrgId?: string actorOrgId: string | undefined
): Promise<TProjectPermissionRT<T>> => { ): Promise<TProjectPermissionRT<T>> => {
switch (type) { switch (type) {
case ActorType.USER: case ActorType.USER: