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