mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
misc: added handling of not found group membership
This commit is contained in:
@@ -402,6 +402,12 @@ export const groupProjectServiceFactory = ({
|
|||||||
groupSlug
|
groupSlug
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!groupMembership) {
|
||||||
|
throw new NotFoundError({
|
||||||
|
message: "Cannot find group membership"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return groupMembership;
|
return groupMembership;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user