fix: check user group membership correctly

This commit is contained in:
Meet
2024-09-25 18:02:32 +05:30
parent da86338bfe
commit 51638b7c71
5 changed files with 25 additions and 12 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ export const groupDALFactory = (db: TDbClient) => {
};
// special query
const findAllGroupMembers = async ({
const findAllGroupPossibleMembers = async ({
orgId,
groupId,
offset = 0,
@@ -125,7 +125,7 @@ export const groupDALFactory = (db: TDbClient) => {
return {
findGroups,
findByOrgId,
findAllGroupMembers,
findAllGroupPossibleMembers,
...groupOrm
};
};