misc: added handling of not found group membership

This commit is contained in:
Sheen Capadngan
2024-09-18 00:29:50 +08:00
parent 335f3f7d37
commit 613b97c93d

View File

@@ -402,6 +402,12 @@ export const groupProjectServiceFactory = ({
groupSlug
});
if (!groupMembership) {
throw new NotFoundError({
message: "Cannot find group membership"
});
}
return groupMembership;
};