Skip to content

Commit

Permalink
fix student add coach
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Abaker authored and Mohamed Abaker committed Jan 20, 2024
1 parent 363368c commit 36f5497
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/Home/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function addBlock(values: any) {
const coachPromises: Promise<ResolvedReq>[] = [];

pairs.forEach((pair: [IUser, IStudent]) => {
students.add(pair[1].user_id);
students.add(pair[1]._id);

coachPromises.push(
putData('student/add-coach', {
Expand All @@ -52,7 +52,6 @@ async function addBlock(values: any) {
}),
);
});
console.log(students);

await Promise.all(coachPromises);

Expand Down

0 comments on commit 36f5497

Please sign in to comment.