Tried to solve some more issues with counts
This commit is contained in:
@@ -64,7 +64,10 @@ export const getUserNamedGroup = async (id: string, name: string) => {
|
||||
};
|
||||
|
||||
export const getUsersGroups = async (ids: string[]) => {
|
||||
return await db.collection("groups").find<Group>({admin: ids}).toArray();
|
||||
return await db
|
||||
.collection("groups")
|
||||
.find<Group>({admin: {$in: ids}})
|
||||
.toArray();
|
||||
};
|
||||
|
||||
export const getAllAssignersByCorporate = async (corporateID: string): Promise<string[]> => {
|
||||
|
||||
Reference in New Issue
Block a user