mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
Fix: Better type checking
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user