Forgot to add this one

This commit is contained in:
Tiago Ribeiro
2024-09-06 10:13:30 +01:00
parent b92a4285c9
commit 08945bfbdd

View File

@@ -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)] : []),