Forgot to add this one
This commit is contained in:
@@ -79,7 +79,7 @@ export const getAllAssignersByCorporate = async (corporateID: string): Promise<s
|
|||||||
return teacherPromises.filter((x) => !!x).flat() as string[];
|
return teacherPromises.filter((x) => !!x).flat() as string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getGroupsForUser = async (admin: string, participant?: string) => {
|
export const getGroupsForUser = async (admin?: string, participant?: string) => {
|
||||||
try {
|
try {
|
||||||
const queryConstraints = [
|
const queryConstraints = [
|
||||||
...(admin ? [where("admin", "==", admin)] : []),
|
...(admin ? [where("admin", "==", admin)] : []),
|
||||||
|
|||||||
Reference in New Issue
Block a user